Skip to content

Commit

Permalink
- Fix github workflow tag logic
Browse files Browse the repository at this point in the history
  • Loading branch information
haideriqbal committed Jul 3, 2024
1 parent c5ab270 commit dbfe01b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ jobs:
run: |
cd backend
docker build -t ghcr.io/ebispot/ols4-backend:${{ github.sha }} .
docker tag ghcr.io/ebispot/ols4-backend:${{github.sha}} ghcr.io/ebispot/ols4-backend:${{ github.head_ref || github.ref }}
docker tag ghcr.io/ebispot/ols4-backend:${{github.sha}} ghcr.io/ebispot/ols4-backend:${{ github.head_ref || github.ref_name }}
docker push --all-tags ghcr.io/ebispot/ols4-backend
- name: Build and push ols4 frontend Docker image
run: |
cd frontend
docker build -t ghcr.io/ebispot/ols4-frontend:${{ github.sha }} .
docker tag ghcr.io/ebispot/ols4-frontend:${{github.sha}} ghcr.io/ebispot/ols4-frontend:${{ github.head_ref || github.ref }}
docker tag ghcr.io/ebispot/ols4-frontend:${{github.sha}} ghcr.io/ebispot/ols4-frontend:${{ github.head_ref || github.ref_name }}
docker push --all-tags ghcr.io/ebispot/ols4-frontend

0 comments on commit dbfe01b

Please sign in to comment.