forked from Permify/permify
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (60 loc) · 2.26 KB
/
code.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# name: code
# on:
# push:
# paths:
# - ".github/workflows/code.yml"
# - "**"
# concurrency: code
# jobs:
# # gp-nonprod - 1
# build-push-gp-nonprod:
# runs-on: ubuntu-latest
# environment:
# name: gp-nonprod
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Global Build Push
# id: build_push
# uses: CondeNast/[email protected]
# with:
# ecr_repository_url: 166755036155.dkr.ecr.us-east-1.amazonaws.com/engagement-permify
# aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# context: .
# target: production
# push: true
# build_args: |
# NPM_TOKEN=${{ secrets.NPM_TOKEN }}
# outputs:
# tag: ${{ steps.build_push.outputs.tag }}
# image: ${{ steps.build_push.outputs.image }}
# deploy-gp-nonprod-eu-0:
# needs: build-push-gp-nonprod
# if: ${{ github.ref_name == 'main' || github.ref_name == 'staging'}}
# runs-on: ubuntu-latest
# environment:
# name: gp-nonprod-protected
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Deploy
# id: deploy
# uses: CondeNast/[email protected]
# with:
# aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws_region: eu-central-1
# eks_cluster_name: gp-nonprod-eu-0
# eks_namespace: engagement
# helm_release_name: permify
# helm_chart_name: gp-app
# helm_chart_version: 9.x
# helm_values_inline: |
# deployment.app.image="166755036155.dkr.ecr.eu-central-1.amazonaws.com/engagement-permify:${{ needs.build-push-gp-nonprod.outputs.tag }}"
# serviceAccount.roleArn="arn:aws:iam::166755036155:role/kubernetes/engagement/engagement-gp-nonprod-eu-0-permify"
# readinessProbe.httpGet.path="/ping"
# livenessProbe.httpGet.path="/ping"
# helm_description: "tag:${{ needs.build-push-gp-nonprod.outputs.tag }}"
# helm_values_file: ./kubernetes/gp-nonprod-eu-0.yml
# deploy: true