Skip to content

Commit

Permalink
fix: build env
Browse files Browse the repository at this point in the history
  • Loading branch information
dotslashf committed Oct 1, 2024
1 parent 6b2e52f commit e5df22f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
GCE_REGION: ${{ secrets.GCE_REGION }}
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: |
echo "$GCP_SA_KEY" > gcp-service-account-key.json
docker build --build-arg DATABASE_URL=${{ secrets.DATABASE_URL }} --build-arg GCS_BUCKET_NAME=$BUCKET_NAME --build-arg GCP_SA_KEY="$GCP_SA_KEY" --build-arg RESEND_API_KEY="$RESEND_API_KEY" -t $GCE_REGION-docker.pkg.dev/$PROJECT_ID/arsip-template/app:$GITHUB_SHA .
docker build --build-arg DATABASE_URL=$DATABASE_URL --build-arg GCS_BUCKET_NAME=$BUCKET_NAME --build-arg GCP_SA_KEY="$GCP_SA_KEY" --build-arg RESEND_API_KEY=$RESEND_API_KEY -t $GCE_REGION-docker.pkg.dev/$PROJECT_ID/arsip-template/app:$GITHUB_SHA .
docker push $GCE_REGION-docker.pkg.dev/$PROJECT_ID/arsip-template/app:$GITHUB_SHA
- name: Copy docker-compose.yml to SSH server
Expand Down

0 comments on commit e5df22f

Please sign in to comment.