[#406] Fix procurement library menu & page #254
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Test Cluster | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: src | |
- name: Checkout Akvo composite actions | |
uses: actions/checkout@v4 | |
with: | |
repository: akvo/composite-actions | |
token: ${{ secrets.GH_PAT }} | |
path: composite-actions | |
ref: 0.0.1 | |
- 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 | |
uses: ./composite-actions/.github/actions/docker-build | |
with: | |
app-name: "idh-idc" | |
service-name: "frontend" | |
dockerfile-location: "frontend" | |
- 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 | |
uses: ./composite-actions/.github/actions/docker-push | |
with: | |
app-name: "idh-idc" | |
service-name: "frontend" | |
gcloud-sa: ${{ secrets.GCLOUD_SERVICE_ACCOUNT_REGISTRY }} | |
- name: Docker Push Backend | |
uses: ./composite-actions/.github/actions/docker-push | |
with: | |
app-name: "idh-idc" | |
service-name: "backend" | |
gcloud-sa: ${{ secrets.GCLOUD_SERVICE_ACCOUNT_REGISTRY }} | |
- name: 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 }} | |
- name: Rollout Backend | |
uses: ./composite-actions/.github/actions/rollout | |
with: | |
app-name: "idh-idc" | |
service-name: "backend" | |
cluster-name: "test" | |
gcloud-sa: ${{ secrets.GCLOUD_SERVICE_ACCOUNT_K8S }} |