Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
ci(worker): fix worker deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Feb 6, 2024
1 parent ccd9082 commit b4f7662
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,5 @@ jobs:
deploy-worker-dev:
needs: build-worker
uses: ./.github/workflows/deploy-worker-dev.yml
with:
use_local: true
11 changes: 10 additions & 1 deletion .github/workflows/deploy-worker-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: ⭐️ Deploy PLATEAU worker dev
on:
workflow_dispatch:
workflow_call:
inputs:
use_local:
type: string
env:
IMAGE: ghcr.io/eukarya-inc/reearth-plateauview/plateauview-api-worker:latest
IMAGE_GCP: asia.gcr.io/reearth-plateau-dev/plateauview-api-worker:latest
Expand Down Expand Up @@ -34,15 +37,21 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Download server arfiacts
- name: Download worker arfiacts
uses: dawidd6/action-download-artifact@v2
if: inputs.use_local != 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: ci.yml
workflow_conclusion: success
branch: geospatialjpv3
name: plateauview-api-worker
check_artifacts: true
- name: Download worker arfiacts
if: inputs.use_local == 'true'
uses: actions/download-artifact@v2
with:
name: plateauview-api-worker
- name: Unpack docker image
run: docker load < plateauview-api-worker.tar.gz
- name: docker push
Expand Down

0 comments on commit b4f7662

Please sign in to comment.