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

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoyane committed Apr 14, 2024
1 parent d56d947 commit dbbef9b
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbbef9b

Please sign in to comment.