Skip to content

Commit

Permalink
feat(ci): skip unchange
Browse files Browse the repository at this point in the history
  • Loading branch information
ImSoZRious committed Mar 29, 2024
1 parent 6a3f922 commit 3769934
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,28 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
server:
- 'apps/server/**'
- name: Login to registry
uses: docker/login-action@v2
if: steps.changes.outputs.server == 'true'
with:
registry: registry.digitalocean.com
username: ${{ secrets.do_username }}
password: ${{ secrets.do_token }}

- name: Setup buildx
uses: docker/setup-buildx-action@v2
if: steps.changes.outputs.server == 'true'

- name: Build and push
uses: docker/build-push-action@v3
if: steps.changes.outputs.server == 'true'
with:
push: true
context: "{{defaultContext}}:apps/server"
Expand Down

0 comments on commit 3769934

Please sign in to comment.