Skip to content

Commit

Permalink
Update build-and-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Loudbooks authored Dec 3, 2024
1 parent 264cc1f commit d209898
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
branches:
- master
- docker

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -26,7 +26,7 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Build with Gradle
- name: Build with Gradle (backend)
run: |
cd backend
./gradlew bootJar
Expand All @@ -39,7 +39,7 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push frontend Docker image to GHCR
uses: docker/build-push-action@v3
Expand All @@ -63,15 +63,15 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and push frontend Docker image
- name: Build and push frontend Docker image to Docker Hub
uses: docker/build-push-action@v3
with:
context: ./frontend
file: ./frontend/Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/pastebook-frontend:latest

- name: Build and push backend Docker image
- name: Build and push backend Docker image to Docker Hub
uses: docker/build-push-action@v3
with:
context: ./backend
Expand Down

0 comments on commit d209898

Please sign in to comment.