fix: syntax error on signing step #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: image cosign workflow | |
on: push | |
jobs: | |
image_build_push_job: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
id-token: write | |
steps: | |
- name: login-quay | |
uses: docker/login-action@v3 | |
with: | |
registry: quay.io/rh-ee-asavage | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
- name: install-cosign | |
uses: sigstore/cosign-installer@main | |
with: | |
cosign-release: 'v2.2.4' | |
- name: check-cosign-install | |
run: cosign version | |
- name: build-sign-push | |
run: | | |
echo "Test message build-sign-push" | |
cat > ./Dockerfile <<EOF | |
FROM alpine | |
CMD ["echo", "Hello container!"] | |
EOF | |
docker build -t quay.io/rh-ee-asavage/gha-image-test:latest . | |
docker push quay.io/rh-ee-asavage/gha-image-test:latest | |
cosign sign -y quay.io/rh-ee-asavage/gha-image-test:latest | |
echo "Success build-sign-push" |