Skip to content

Commit

Permalink
ci: 👷 replace exclude logic with more readable include for context
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan6erbond committed May 9, 2023
1 parent bf6e06a commit c846fdc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,11 @@ jobs:
image:
- ${{ github.repository }}-frontend
- ${{ github.repository }}-server
context:
- "."
- "server"
exclude:
include:
- image: ${{ github.repository }}-frontend
context: "server"
- image: ${{ github.repository }}-server
context: "."
- image: ${{ github.repository }}-server
context: "server"
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,11 @@ jobs:
image:
- ${{ github.repository }}-frontend
- ${{ github.repository }}-server
context:
- "."
- "server"
exclude:
include:
- image: ${{ github.repository }}-frontend
context: "server"
- image: ${{ github.repository }}-server
context: "."
- image: ${{ github.repository }}-server
context: "server"
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down

0 comments on commit c846fdc

Please sign in to comment.