Skip to content

Commit fc851aa

Browse files
committed
test deploy only
1 parent 6a8512b commit fc851aa

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

.github/workflows/cd.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,27 @@ jobs:
2323
labels: |
2424
deploy
2525
26-
build:
27-
name: Build
28-
if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'deploy'))
29-
uses: ./.github/workflows/build.yml
30-
with:
31-
tags: |
32-
type=ref,event=pr,prefix=pr-,priority=1000
33-
type=edge,branch=$repo.default_branch,priority=900
34-
type=raw,value=latest,enable={{is_default_branch}},priority=900
35-
push: true
36-
gke-cluster: api-platform-demo
37-
gke-zone: europe-west1-c
38-
secrets:
39-
gke-credentials: ${{ secrets.GKE_SA_KEY }}
40-
gke-project: ${{ secrets.GKE_PROJECT }}
41-
gh-key: ${{ secrets.GH_KEY }}
26+
# build:
27+
# name: Build
28+
# if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'deploy'))
29+
# uses: ./.github/workflows/build.yml
30+
# with:
31+
# tags: |
32+
# type=ref,event=pr,prefix=pr-,priority=1000
33+
# type=edge,branch=$repo.default_branch,priority=900
34+
# type=raw,value=latest,enable={{is_default_branch}},priority=900
35+
# push: true
36+
# gke-cluster: api-platform-demo
37+
# gke-zone: europe-west1-c
38+
# secrets:
39+
# gke-credentials: ${{ secrets.GKE_SA_KEY }}
40+
# gke-project: ${{ secrets.GKE_PROJECT }}
41+
# gh-key: ${{ secrets.GH_KEY }}
4242

4343

4444
deploy:
4545
name: Deploy
46-
needs: [ build ]
46+
#needs: [ build ]
4747
if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'deploy'))
4848
uses: ./.github/workflows/deploy.yml
4949
with:

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ jobs:
123123
- name: HELM Deploy
124124
run: |
125125
set -o pipefail
126-
# JWT_PASSPHRASE=$(openssl rand -base64 32)
127-
# JWT_SECRET_KEY=$(openssl genpkey -pass file:<(echo "$JWT_PASSPHRASE") -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096)
126+
JWT_PASSPHRASE=$(openssl rand -base64 32)
127+
JWT_SECRET_KEY=$(openssl genpkey -pass file:<(echo "$JWT_PASSPHRASE") -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096)
128128
helm upgrade ${{ needs.meta.outputs.release_name }} ./helm/api-platform \
129129
--install \
130130
--create-namespace \
@@ -152,9 +152,9 @@ jobs:
152152
--set=ingress.tls[0].hosts[0]=${{ env.URL }} \
153153
--set=ingress.annotations."cert-manager\.io/cluster-issuer"=letsencrypt-production \
154154
--set=ingress.tls[0].secretName=${{ needs.meta.outputs.release_name }}-website-ssl \
155-
# --set=php.jwt.secretKey="$JWT_SECRET_KEY" \
156-
# --set=php.jwt.publicKey="$(openssl pkey -in <(echo "$JWT_SECRET_KEY") -passin file:<(echo "$JWT_PASSPHRASE") -pubout)" \
157-
# --set=php.jwt.passphrase=$JWT_PASSPHRASE \
155+
--set=php.jwt.secretKey="$JWT_SECRET_KEY" \
156+
--set=php.jwt.publicKey="$(openssl pkey -in <(echo "$JWT_SECRET_KEY") -passin file:<(echo "$JWT_PASSPHRASE") -pubout)" \
157+
--set=php.jwt.passphrase=$JWT_PASSPHRASE \
158158
--set=php.corsAllowOrigin="^$(echo "${{ join(fromJSON(env.CORS), '|') }}" | sed 's/\./\\./g')$" \
159159
--set=php.host=${{ env.URL }} \
160160
--set=next.rootUrl=${{ env.URL }} \

0 commit comments

Comments
 (0)