Skip to content

Commit

Permalink
Enable Build
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasSamson committed Jun 20, 2023
1 parent 5e51702 commit de50498
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,27 @@ jobs:
labels: |
deploy
# build:
# name: Build
# if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'deploy'))
# uses: ./.github/workflows/build.yml
# with:
# tags: |
# type=ref,event=pr,prefix=pr-,priority=1000
# type=edge,branch=$repo.default_branch,priority=900
# type=raw,value=latest,enable={{is_default_branch}},priority=900
# push: true
# gke-cluster: api-platform-demo
# gke-zone: europe-west1-c
# secrets:
# gke-credentials: ${{ secrets.GKE_SA_KEY }}
# gke-project: ${{ secrets.GKE_PROJECT }}
# gh-key: ${{ secrets.GH_KEY }}
build:
name: Build
if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'deploy'))
uses: ./.github/workflows/build.yml
with:
tags: |
type=ref,event=pr,prefix=pr-,priority=1000
type=edge,branch=$repo.default_branch,priority=900
type=raw,value=latest,enable={{is_default_branch}},priority=900
push: true
gke-cluster: api-platform-demo
gke-zone: europe-west1-c
secrets:
gke-credentials: ${{ secrets.GKE_SA_KEY }}
gke-project: ${{ secrets.GKE_PROJECT }}
gh-key: ${{ secrets.GH_KEY }}


deploy:
name: Deploy
# needs: [ build ]
needs: [ build ]
if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'deploy'))
uses: ./.github/workflows/deploy.yml
with:
Expand Down

0 comments on commit de50498

Please sign in to comment.