Skip to content

Commit

Permalink
feat: Add prod deployment github action
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasClaisse committed Oct 21, 2020
1 parent 5c7d0cb commit 89a98d3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/backend-ci-push-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ jobs:
tags: latest
path: microservices/user/app
push: true

- name: Deploy or redeploy user app
uses: cross-the-world/ssh-pipeline@master
with:
host: ${{ secrets.HOST_PREPROD }}
user: ${{ secrets.HOST_PREPROD_USERNAME }}
pass: ${{ secrets.HOST_PREPROD_PASSWORD }}
script: /kubernetes/app-deployment.sh user

build-and-push-auth:
name: Docker Build Auth and push image
Expand Down Expand Up @@ -75,3 +83,11 @@ jobs:
tags: latest
path: microservices/auth/app
push: true

- name: Deploy or redeploy auth app
uses: cross-the-world/ssh-pipeline@master
with:
host: ${{ secrets.HOST_PROD }}
user: ${{ secrets.HOST_PROD_USERNAME }}
pass: ${{ secrets.HOST_PROD_PASSWORD }}
script: /kubernetes/app-deployment.sh auth

0 comments on commit 89a98d3

Please sign in to comment.