| 67 | images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | 67 | images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} |
| 68 | # Release version tag if the workflow is triggered by a release | 68 | # Release version tag if the workflow is triggered by a release |
| 69 | # Branch name tag if the workflow is triggered by a push | 69 | # Branch name tag if the workflow is triggered by a push |
| | 70 | # Latest tag if the branch is release and the workflow is triggered by a push |
| 70 | tags: | | 71 | tags: | |
| 71 | ${{ github.event_name == 'release' && github.ref_name || env.BRANCH_NAME }} | 72 | ${{ github.event_name == 'release' && github.ref_name || env.BRANCH_NAME }} |
| | 73 | ${{ github.event_name == 'push' && env.BRANCH_NAME == 'release' && 'latest' || '' }} |
| 72 | | 74 | |
| 73 | # Login into package repository as the person who created the release | 75 | # Login into package repository as the person who created the release |
| 74 | - name: Log in to the Container registry | 76 | - name: Log in to the Container registry |