fix: upgrade dependencies to fix some CVEs #31
Workflow file for this run
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 Multichain Dev. | |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- develop | |
env: | |
IMAGE: "us-east1-docker.pkg.dev/pagoda-discovery-platform-dev/multichain-public/multichain-dev" | |
TAG: ${{ github.sha }} | |
jobs: | |
build-mpc-recovery: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: "Checkout mpc-recovery" | |
- name: Login to GCP Artifact Registry | |
run: echo "$GOOGLE_CREDENTIALS" | docker login -u _json_key --password-stdin https://us-east1-docker.pkg.dev | |
env: | |
GOOGLE_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS_DEV }} | |
- name: Build Docker image and push to Google Artifact Registry | |
id: docker-push-tagged | |
uses: docker/build-push-action@v4 | |
with: | |
push: true | |
file: ./Dockerfile.multichain | |
tags: "${{ env.IMAGE }}:${{ env.TAG }}" | |
deploy: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
needs: build-mpc-recovery | |
steps: | |
- id: 'auth' | |
uses: 'google-github-actions/auth@v2' | |
with: | |
credentials_json: '${{ secrets.GCP_CREDENTIALS_DEV }}' | |
- name: 'Set up Cloud SDK' | |
uses: 'google-github-actions/setup-gcloud@v2' | |
- name: 'Set project' | |
run: 'gcloud config set project pagoda-discovery-platform-dev' | |
- name: 'Update Nodes' | |
run: | | |
gcloud compute instances update-container multichain-dev-0 --zone us-central1-a --container-image=${{ env.IMAGE }}:${{ env.TAG }} & \ | |
gcloud compute instances update-container multichain-dev-1 --zone us-central1-a --container-image=${{ env.IMAGE }}:${{ env.TAG }} & \ | |
gcloud compute instances update-container multichain-dev-2 --zone us-central1-a --container-image=${{ env.IMAGE }}:${{ env.TAG }} & \ | |
gcloud compute instances update-container multichain-dev-3 --zone us-central1-a --container-image=${{ env.IMAGE }}:${{ env.TAG }} & \ | |
gcloud compute instances update-container multichain-dev-4 --zone us-central1-a --container-image=${{ env.IMAGE }}:${{ env.TAG }} & \ | |
gcloud compute instances update-container multichain-dev-5 --zone us-central1-a --container-image=${{ env.IMAGE }}:${{ env.TAG }} & \ | |
gcloud compute instances update-container multichain-dev-6 --zone us-central1-a --container-image=${{ env.IMAGE }}:${{ env.TAG }} & \ | |
gcloud compute instances update-container multichain-dev-7 --zone us-central1-a --container-image=${{ env.IMAGE }}:${{ env.TAG }} | |