Skip to content

Commit

Permalink
Add rollout composite
Browse files Browse the repository at this point in the history
  • Loading branch information
anjarakvo committed Jan 30, 2024
1 parent c68d921 commit 7fac4b5
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,39 +21,55 @@ jobs:
path: composite-actions
ref: main

- name: node-operation
- name: Node Operations
uses: ./composite-actions/.github/actions/node-operation
with:
node-version: "18"
node-command: "yarn install --no-progress --frozen-lock && yarn build && rm -rf node_modules"


- name: docker-build-frontend
- name: Docker Build Frontend
uses: ./composite-actions/.github/actions/docker-build
with:
app-name: "idh-idc"
service-name: "frontend"
dockerfile-location: "frontend"

- name: docker-build-backend
- name: Docker Build Backend
uses: ./composite-actions/.github/actions/docker-build
with:
app-name: "idh-idc"
service-name: "backend"
dockerfile-location: "backend"

- name: docker-push-frontend
- name: Docker Push Frontend
uses: ./composite-actions/.github/actions/docker-push
with:
app-name: "idh-idc"
service-name: "frontend"
dockerfile-location: "frontend"
gcloud-sa: ${{ secrets.GCLOUD_SERVICE_ACCOUNT_REGISTRY }}

- name: docker-push-backend
- name: Docker Push Backend
uses: ./composite-actions/.github/actions/docker-push
with:
app-name: "idh-idc"
service-name: "backend"
dockerfile-location: "backend"
gcloud-sa: ${{ secrets.GCLOUD_SERVICE_ACCOUNT_REGISTRY }}
gcloud-sa: ${{ secrets.GCLOUD_SERVICE_ACCOUNT_REGISTRY }}

- rollout-frontend:
uses: ./composite-actions/.github/actions/rollout
with:
app-name: "idh-idc"
service-name: "frontend"
cluster-name: "test"
gcloud-sa: ${{ secrets.GCLOUD_SERVICE_ACCOUNT_K8S }}

- rollout-backend:
uses: ./composite-actions/.github/actions/rollout
with:
app-name: "idh-idc"
service-name: "frontend"
cluster-name: "test"
gcloud-sa: ${{ secrets.GCLOUD_SERVICE_ACCOUNT_K8S }}

0 comments on commit 7fac4b5

Please sign in to comment.