Skip to content

Commit 9d91e5f

Browse files
committed
cd: prod deploy
1 parent 42394fd commit 9d91e5f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,27 @@ jobs:
9393
teleport_token: ${{ env.APP }}
9494
teleport_app_name: "argocd-stg"
9595
argocd_auth_token: ${{ secrets.ARGOCD_AUTH_TOKEN }}
96+
deploy-prod:
97+
name: Deploy Production
98+
runs-on: ubuntu-latest
99+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
100+
needs: [set-variables, docker-build, deploy-stg]
101+
permissions:
102+
contents: "read"
103+
id-token: "write"
104+
environment: stg
105+
env:
106+
VERSION: ${{ needs.set-variables.outputs.VERSION }}
107+
ARGOCD_SERVER: "argocd-prod.teleport.parity.io"
108+
steps:
109+
- name: Deploy to ArgoCD
110+
uses: paritytech/argocd-deployment-action@main
111+
with:
112+
environment: "parity-prod"
113+
tag: "${{ env.VERSION }}"
114+
app_name: "${{ env.APP }}"
115+
app_packages: "frontend,backend"
116+
argocd_server: ${{ env.ARGOCD_SERVER }}
117+
teleport_token: ${{ env.APP }}
118+
teleport_app_name: "argocd-prod"
119+
argocd_auth_token: ${{ secrets.ARGOCD_AUTH_TOKEN }}

0 commit comments

Comments
 (0)