Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Zafei-Erin committed Feb 21, 2024
1 parent f6bfbe5 commit 5124904
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/Backend-ci .yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
types: [labeled]

jobs:
push-docker:
git-ci:
if: "${{ github.event.label.name == 'deploy: backend' }}"
runs-on: ubuntu-latest

Expand All @@ -34,7 +34,11 @@ jobs:
- name: Run ci
run: npm ci
working-directory: "backend"


docker-push:
needs: git-ci
runs-on: ubuntu-latest

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/Frontend-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ on:
types: [labeled]

jobs:
test:
git-ci:
if: "${{ github.event.label.name == 'deploy: frontend' }}"
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Remove deploy label
uses: actions-ecosystem/action-remove-labels@v1
with:
Expand Down

0 comments on commit 5124904

Please sign in to comment.