Skip to content

Docker Build

Docker Build #254

Workflow file for this run

name: Docker Build
on:
workflow_dispatch:
inputs:
push:
type: boolean
default: false
description: Push the images after build
schedule:
- cron: 0 20 * * *
permissions:
contents: write
packages: write
env:
REGISTRY_IMAGE: ghcr.io/docker-ruby-nightly/ruby
jobs:
set-up-matrix:
name: Set up matrix
runs-on: ubuntu-latest
outputs:
date: ${{ steps.fetch-date.outputs.date }}
images: ${{ steps.fetch-matrix.outputs.images }}
variants: ${{ steps.fetch-variants.outputs.variants }}
json: ${{ steps.fetch-json.outputs.json }}
steps:
- uses: actions/checkout@v4
- id: fetch-variants
run: echo "variants=$(./variants.rb)" >> "$GITHUB_OUTPUT"
- id: fetch-json
run: echo "json=$(./nightly-versions.rb)" >> "$GITHUB_OUTPUT"
- id: fetch-date
run: echo "date=$(jq -r .master.date versions.json)" >> $GITHUB_OUTPUT
- run: ./apply-templates.sh
- id: fetch-matrix
run: echo "images=$(./images.rb)" >> "$GITHUB_OUTPUT"
- name: Download source
run: curl -O https://cache.ruby-lang.org/pub/ruby/snapshot/snapshot-master.tar.xz
- uses: actions/upload-artifact@v4
with:
name: snapshot-master
path: snapshot-master.tar.xz
- uses: actions/download-artifact@v4
with:
name: snapshot-master
- name: Display structure of downloaded files
run: ls -R snapshot-master