--- when: - event: "push" branch: "main" - event: "manual" steps: # build yamllint container - name: "build" image: "cr.simoncor.net/quay/buildah/stable:latest" privileged: true commands: - | VERSION=$(grep -oP '(?<=yamllint==)[0-9.]+' Dockerfile.linux.amd64) echo "Building yamllint version ${VERSION}" buildah bud -t yamllint -f Dockerfile.linux.amd64 . buildah tag yamllint cr.simoncor.net/yamllint:${VERSION} buildah push cr.simoncor.net/yamllint:${VERSION}