Skip to content

Comment out set-matrix run command and add new run #69

Comment out set-matrix run command and add new run

Comment out set-matrix run command and add new run #69

Workflow file for this run

on:
- push
name: Build 🛢️ container
jobs:
setup-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- id: set-matrix
# run: echo "::set-output name=matrix::$(cat build_versions.json | jq '. | tostring')"
run: echo "matrix=$(cat build_versions.json | jq '. | tostring')" >> $GITHUB_OUTPUT
build_job:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs: setup-matrix
strategy:
matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }}
steps:
- name: Build version ${{ matrix.release }} container
uses: rwaffen/gha-build-and-publish-a-container@refactor_tagging
with:
# registry: docker.io # Default: ghcr.io
# registry_username: foobar # Default: github.repository_owner
registry_password: ${{ secrets.GITHUB_TOKEN }}
# build_arch: linux/amd64,linux/arm64 # Default: linux/amd64
build_args: |
PUPPET_VERSION=${{ matrix.release }}
PUPPET_RELEASE=${{ matrix.version }}
# buildfile: Dockerfile.something # Default: Dockerfile
# publish: 'false' # Default: true
# tags: |
# ghcr.io/betadots/gha-test-repo:devlopment
# ghcr.io/betadots/gha-test-repo:latest