Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lkaesberg authored Mar 28, 2024
1 parent 9e2d737 commit 4b46b88
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches:
- main
tags:
- '*' # This will trigger the workflow for any tag push

jobs:
build_and_push_docker_image:
runs-on: ubuntu-latest
Expand All @@ -23,11 +26,15 @@ jobs:
with:
context: frontend/.
push: true
tags: ghcr.io/${{ github.repository }}/frontend:latest
tags: |
ghcr.io/${{ github.repository }}/frontend:latest
ghcr.io/${{ github.repository }}/frontend:${GITHUB_REF_NAME}
- name: Build and push backend
uses: docker/build-push-action@v2
with:
context: backend/.
push: true
tags: ghcr.io/${{ github.repository }}/backend:latest
tags: |
ghcr.io/${{ github.repository }}/backend:latest
ghcr.io/${{ github.repository }}/backend:${GITHUB_REF_NAME}

0 comments on commit 4b46b88

Please sign in to comment.