Skip to content

Commit

Permalink
push to to dh as both tag and latest
Browse files Browse the repository at this point in the history
Signed-off-by: Elis Lulja <[email protected]>
  • Loading branch information
asimpleidea committed Aug 10, 2021
1 parent 3fba223 commit 53454ed
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/push_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,19 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
- name: Build and push with its tag
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: cnwan/cnwan-operator:${{ github.event.release.tag_name }}

- name: Build and push as latest
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: cnwan/cnwan-operator

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 53454ed

Please sign in to comment.