Skip to content

Commit

Permalink
Update push-docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rsarm authored Aug 30, 2024
1 parent 82327fe commit d1bd389
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/push-docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Build and Push Docker Image

on:
push:
tags:
- 'image-v*'
release:
types: [created]
workflow_dispatch: # Allows manual triggering

jobs:
Expand All @@ -26,7 +25,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Docker image
run: docker build -t ghcr.io/${{ github.repository_owner }}/f7t4jhub:${{ env.APP_VERSION }} -f dockerfiles/Dockerfile .
run: docker build -t ghcr.io/${{ github.repository_owner }}/f7t4jhub:${{ env.APP_VERSION }}-fcs${{ github.event.release.tag_name }} -f dockerfiles/Dockerfile .

- name: Push Docker image to GitHub Container Registry
run: docker push ghcr.io/${{ github.repository_owner }}/f7t4jhub:${{ env.APP_VERSION }}
run: docker push ghcr.io/${{ github.repository_owner }}/f7t4jhub:${{ env.APP_VERSION }}-fcs${{ github.event.release.tag_name }}

0 comments on commit d1bd389

Please sign in to comment.