Skip to content

Commit

Permalink
push on every tag created
Browse files Browse the repository at this point in the history
  • Loading branch information
CubicrootXYZ committed Aug 3, 2024
1 parent 2aad0ff commit af148bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
password: ${{ secrets.dockerhub_token }}
- name: Push image with commit SHA
run: docker push ${{ inputs.image_name }}:${{ github.sha }}
- name: Push image with release tag
if: "github.event_name == 'release' && github.event.action == 'created'"
run: docker tag ${{ inputs.image_name }}:${{ github.sha }} ${{ inputs.image_name }}:${{ github.event.release.tag_name }} && \
docker push ${{ inputs.image_name }}:${{ github.event.release.tag_name }}
- name: Push image with tag
if: "startsWith(github.ref, 'refs/tags/')"
run: docker tag ${{ inputs.image_name }}:${{ github.sha }} ${{ inputs.image_name }}:$${{ github.ref_name }} && \
docker push ${{ inputs.image_name }}:${{ github.ref_name }}

0 comments on commit af148bf

Please sign in to comment.