# This workflow will perform a test whenever there # is some change in code done to ensure that the changes # are not buggy and we are getting the desired output. name: Build with docker/metadata-action on: push: pull_request: workflow_dispatch: schedule: - cron: '0 0 * * *' # every day at midnight jobs: build-containerfile: name: Build image with Containerfile runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: install_latest: [ true, false ] env: IMAGE_NAME: "hello-world" steps: # Checkout buildah action github repository - name: Checkout Buildah action uses: actions/checkout@v4 - name: Docker Metadata id: docker-metadata uses: docker/metadata-action@v4 with: images: | ${{ env.IMAGE_NAME }} tags: | type=edge type=sha type=ref,event=branch type=ref,event=pr type=schedule type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }} - name: Install latest buildah if: matrix.install_latest run: | bash .github/install_latest_buildah.sh - name: Create Dockerfile run: | cat > Containerfile<