Skip to content

Commit

Permalink
Fix working-directory on GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sistracia committed May 18, 2024
1 parent de36e40 commit 374126e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/deploy.ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
tags:
- 'ghcr-*'

defaults:
run:
working-directory: ./web

jobs:
push_to_registries:
name: Push Docker image to multiple registries
Expand All @@ -31,7 +35,6 @@ jobs:

- name: Build and push Docker images
uses: docker/build-push-action@v5
working-directory: ./web
with:
context: .
push: true
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/deploy.private.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
tags:
- 'private-*'

defaults:
run:
working-directory: ./web

jobs:
deployment:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -38,7 +42,6 @@ jobs:
-
name: Build and push to local registry
uses: docker/build-push-action@v5
working-directory: ./web
with:
context: .
file: ./Dockerfile
Expand Down

0 comments on commit 374126e

Please sign in to comment.