diff --git a/.github/workflows/push_image.yml b/.github/workflows/push_image.yml index 60215cb..9053574 100644 --- a/.github/workflows/push_image.yml +++ b/.github/workflows/push_image.yml @@ -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 }}