diff --git a/.github/workflows/deploy_prod.yml b/.github/workflows/deploy_prod.yml index ecf1738..d89103b 100644 --- a/.github/workflows/deploy_prod.yml +++ b/.github/workflows/deploy_prod.yml @@ -9,31 +9,15 @@ env: GCP_WORKLOAD_IDENTITY_PROVIDER: projects/950334725361/locations/global/workloadIdentityPools/github-oidc-pool/providers/github-provider GCP_SERVICE_ACCOUNT: reearth-prod-github-oidc@reearth.iam.gserviceaccount.com GCP_REGION: asia-northeast1 - GAR_REPOSITORY: asia-northeast1-docker.pkg.dev jobs: - pre: - name: Pre - runs-on: ubuntu-latest - outputs: - workload_identity_provider: ${{ steps.set_outputs.outputs.workload_identity_provider }} - service_account: ${{ steps.set_outputs.outputs.service_account }} - gar_repository: ${{ steps.set_outputs.outputs.gar_repository }} - gar_dst: ${{ steps.set_outputs.outputs.gar_dst }} - steps: - - name: Set pre - id: set_outputs - run: | - echo "workload_identity_provider=${{ env.GCP_WORKLOAD_IDENTITY_PROVIDER }}" >> $GITHUB_OUTPUT - echo "service_account=${{ env.GCP_SERVICE_ACCOUNT }}" >> $GITHUB_OUTPUT - echo "gar_repository=${{ env.GAR_REPOSITORY }}" >> $GITHUB_OUTPUT - echo "gar_dst=${{ env.IMAGE_NAME_GAR }}" >> $GITHUB_OUTPUT + # TODO: Refactor with and env param build: uses: ./.github/workflows/_build.yaml with: - workload_identity_provider: ${{ needs.pre.outputs.workload_identity_provider }}" - service_account: ${{ needs.pre.outputs.service_account }}" - gar_repository: ${{ needs.pre.outputs.gar_repository }}" - gar_dst: ${{ needs.pre.outputs.gar_dst }}" + workload_identity_provider: projects/950334725361/locations/global/workloadIdentityPools/github-oidc-pool/providers/github-provider + service_account: reearth-prod-github-oidc@reearth.iam.gserviceaccount.com + gar_repository: asia-northeast1-docker.pkg.dev + gar_dst: asia-northeast1-docker.pkg.dev/reearth/eukarya/notion-proxy deploy: runs-on: ubuntu-latest needs: build