enable docker push in ci_docker

This commit is contained in:
scito
2022-12-27 00:52:14 +01:00
parent e4e5271c0f
commit f272c35a1f

View File

@@ -48,10 +48,11 @@ jobs:
file: Dockerfile_no_qr_reader
# Note: tags has to be all lower-case
tags: |
scito/extract_otp_secret_keys:latest
ghcr.io/scito/extract_otp_secret_keys:latest
scito/extract_otp_secret_keys_no_qr_reader:latest
ghcr.io/scito/extract_otp_secret_keys_no_qr_reader:latest
# build on feature branches, push only on master branch
# push: ${{ github.ref == 'refs/heads/master' }}
# TODO push: ${{ github.ref == 'refs/heads/master' }}
push: true
- name: "qr_reader: Build image and push to Docker Hub and GitHub Container Registry"
uses: docker/build-push-action@v2
@@ -63,7 +64,8 @@ jobs:
scito/extract_otp_secret_keys:latest
ghcr.io/scito/extract_otp_secret_keys:latest
# build on feature branches, push only on master branch
# push: ${{ github.ref == 'refs/heads/master' }}
# TODO push: ${{ github.ref == 'refs/heads/master' }}
push: true
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}