Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
d-buckner authored Jan 20, 2025
1 parent a2d8270 commit 8ead89a
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ on:
jobs:

build-server:

runs-on: ubuntu-latest
defaults:
run:
working-directory: 'server'

steps:
- name: 'Login to GitHub Container Registry'
Expand All @@ -24,15 +20,11 @@ jobs:
- uses: actions/checkout@v4
- name: Build the server image
run: |
docker build . --file Dockerfile --tag p2piano-server:latest
docker push ghcr.io/${{github.actor}}/p2piano-server:latest
cd service && docker build . --file Dockerfile --tag p2piano-server:latest \
&& docker push ghcr.io/${{github.actor}}/p2piano-server:latest
build-client:

runs-on: ubuntu-latest
defaults:
run:
working-directory: 'client'

steps:
- name: 'Login to GitHub Container Registry'
Expand All @@ -41,8 +33,9 @@ jobs:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

- uses: actions/checkout@v4
- name: Build the server image
- name: Build the client image
run: |
docker build . --file Dockerfile --tag p2piano-client:latest
docker push ghcr.io/${{github.actor}}/p2piano-client:latest
cd client && docker build . --file Dockerfile --tag p2piano-client:latest \
&& docker push ghcr.io/${{github.actor}}/p2piano-client:latest

0 comments on commit 8ead89a

Please sign in to comment.