Skip to content

Commit

Permalink
Push to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscariremma committed Dec 5, 2023
1 parent 37213a7 commit ed773ab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ jobs:

docker:
runs-on: ubuntu-latest

permissions:
packages: write

needs:
- build
- test
Expand All @@ -88,6 +92,7 @@ jobs:
id: docker_build
uses: docker/build-push-action@v2
with:
push: false
context: ./backend
file: ./backend/Dockerfile
push: ${{ github.ref == 'refs/heads/main' }}
tags: ghcr.io/cthit/hubbit-backend:latest
8 changes: 7 additions & 1 deletion .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ jobs:

docker:
runs-on: ubuntu-latest

permissions:
packages: write

needs:
- build
- test
Expand All @@ -65,4 +69,6 @@ jobs:
with:
context: ./frontend
file: ./frontend/Dockerfile
push: false
push: ${{ github.ref == 'refs/heads/main' }}
tags: ghcr.io/cthit/hubbit-frontend:latest

0 comments on commit ed773ab

Please sign in to comment.