github actions docker build no_qr_reader

This commit is contained in:
scito
2022-12-27 00:43:30 +01:00
parent 158564e79a
commit e4e5271c0f
2 changed files with 29 additions and 4 deletions

View File

@@ -40,7 +40,20 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GHCR_IO_TOKEN }}
- name: Build image and push to Docker Hub and GitHub Container Registry
- name: "no_qr_reader: Build image and push to Docker Hub and GitHub Container Registry"
uses: docker/build-push-action@v2
with:
# relative path to the place where source code with Dockerfile is located
context: .
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
# build on feature branches, push only on master branch
# push: ${{ github.ref == 'refs/heads/master' }}
- name: "qr_reader: Build image and push to Docker Hub and GitHub Container Registry"
uses: docker/build-push-action@v2
with:
# relative path to the place where source code with Dockerfile is located
@@ -50,7 +63,7 @@ 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' }}
# push: ${{ github.ref == 'refs/heads/master' }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}