Skip to content

Commit

Permalink
revert: deploy yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
RRRHAN committed Mar 3, 2024
1 parent 52d052b commit e888e8a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16.x
- uses: actions/checkout@v3
- name: Install fe dependencies
run: yarn install
working-directory: ../front-end
working-directory: ./front-end
- name: Build fe
run: yarn run build
working-directory: ../front-end
working-directory: ./front-end
env:
REACT_APP_FOO: bar
REACT_APP_BASE_URL: /api/
- name: inject fe
run: mkdir "./ui" && cp -R "../front-end/build/"* "./ui"
run: mkdir "./back-end/ui" && cp -R "./front-end/build/"* "./back-end/ui"
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@v2
with:
version: '333.0.0'
Expand All @@ -33,8 +34,12 @@ jobs:
- run: |
gcloud auth configure-docker
gcloud components install beta
working-directory: ./back-end
- run: docker build -t gcr.io/${{ secrets.GCP_PROJECT_ID }}/your-app-name .
working-directory: ./back-end
- run: docker push gcr.io/${{ secrets.GCP_PROJECT_ID }}/your-app-name
working-directory: ./back-end
- run: gcloud beta run deploy your-app-name --image gcr.io/${{ secrets.GCP_PROJECT_ID }}/your-app-name --platform managed --region your-region
working-directory: ./back-end
env:
GOOGLE_CLOUD_PROJECT: ${{ secrets.GCP_PROJECT_ID }}
GOOGLE_CLOUD_PROJECT: ${{ secrets.GCP_PROJECT_ID }}

0 comments on commit e888e8a

Please sign in to comment.