name: "Build Runner Images" on: schedule: - cron: "0 0 * * *" push: branches: - "main" concurrency: group: build-runner-images cancel-in-progress: true jobs: base: runs-on: "ubuntu-latest" steps: - name: Login to Registry uses: "docker/login-action@v3" with: registry: git.kjan.de username: ${{ secrets.DEPLOY_USER }} password: ${{ secrets.DEPLOY_SECRET }} - name: Build and push base image id: build_base uses: "docker/build-push-action@v6" with: context: "{{defaultContext}}:images/actions/act" push: true tags: | git.kjan.de/actions/runner-basic:latest git.kjan.de/actions/runner-basic:${{ github.run_number }} retries: 1 extended-latest: runs-on: "ubuntu-latest" needs: - base strategy: matrix: language: ["go", "js", "protobuf", "oas", "just", "bun", "rust"] steps: - name: Login to Registry uses: "docker/login-action@v3" with: registry: git.kjan.de username: ${{ secrets.DEPLOY_USER }} password: ${{ secrets.DEPLOY_SECRET }} - name: Build and push ${{ matrix.language }} image uses: "docker/build-push-action@v6" with: context: "{{defaultContext}}:images/actions/${{ matrix.language }}" push: true tags: | git.kjan.de/actions/runner-${{ matrix.language }}:latest git.kjan.de/actions/runner-${{ matrix.language }}:${{ github.run_number }} retries: 1 extended-versioned: runs-on: "ubuntu-latest" needs: - base strategy: matrix: include: - language: php version: 8.2 - language: php version: 8.3 - language: lua version: 5.3 - language: lua version: 5.4 - language: java version: 8 - language: java version: 17 - language: java version: 21 - language: java version: 23 steps: - name: Login to Registry uses: "docker/login-action@v3" with: registry: git.kjan.de username: ${{ secrets.DEPLOY_USER }} password: ${{ secrets.DEPLOY_SECRET }} - name: Build and push ${{ matrix.language }} {{ matrix.version }} image uses: "docker/build-push-action@v6" with: context: "{{defaultContext}}:images/actions/${{ matrix.language }}" push: true build-args: PACKAGE_VERSION=${{ matrix.version }} tags: | git.kjan.de/actions/runner-${{ matrix.language }}-${{ matrix.version }}:latest git.kjan.de/actions/runner-${{ matrix.language }}-${{ matrix.version }}:${{ github.run_number }} retries: 1