Skip to content

Commit

Permalink
Update GitHub actions and improve syntax readability
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Feb 26, 2025
1 parent 734a0fb commit 4507fc2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/actions/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ runs:
shell: bash
run: docker build -t ${{ inputs.region }}-docker.pkg.dev/${{ inputs.projectId }}/${{ inputs.registry }}:${{ inputs.tag }} ${{ inputs.folder }}
- name: Auth Google Cloud
uses: google-github-actions/[email protected].7
uses: google-github-actions/[email protected].8
with:
workload_identity_provider: projects/900797847730/locations/global/workloadIdentityPools/github/providers/hplush
service_account: github-deploy@${{ inputs.projectId }}.iam.gserviceaccount.com
- name: Install Google Cloud
uses: google-github-actions/[email protected].2
uses: google-github-actions/[email protected].4
- name: Auth Docker
shell: bash
run: gcloud auth configure-docker ${{ inputs.region }}-docker.pkg.dev --quiet
Expand All @@ -41,7 +41,7 @@ runs:
run: docker push ${{ inputs.region }}-docker.pkg.dev/${{ inputs.projectId }}/${{ inputs.registry }}:${{ inputs.tag }}
- name: Deploy to Cloud Run
id: deploy
uses: google-github-actions/[email protected].2
uses: google-github-actions/[email protected].3
with:
service: ${{ inputs.service }}
region: ${{ inputs.region }}
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/init-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ runs:
using: composite
steps:
- name: Install pnpm
uses: pnpm/action-setup@v4.0.0
uses: pnpm/action-setup@v4.1.0
- name: Install Node.js
uses: actions/setup-node@v4.1.0
uses: actions/setup-node@v4.2.0
with:
node-version-file: .node-version
cache: ${{ inputs.cache && 'pnpm' || '' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
tag: preview-${{ env.PR_NUMBER }}
env: ASSETS=1,DATABASE_URL=memory://,PROXY_ORIGIN=^https:\/\/preview-\d+---staging-server-900797847730\.europe-west1\.run\.app$
# flags: |
# --update-secrets=DATABASE_URL=preview-db-url:latest
# --update-secrets DATABASE_URL=preview-db-url:latest
- name: Update deployment status
uses: bobheadxi/[email protected]
if: always()
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
# Persistent database was disable temporary to save money
# flags: |
# --vpc-connector db-connector
# --update-secrets=DATABASE_URL=staging-db-url:latest
# --update-secrets DATABASE_URL=staging-db-url:latest
flags: |
--add-volume=name=db,type=cloud-storage,bucket=staging-db
--add-volume-mount=volume=db,mount-path=/var/mnt/staging-db/
--add-volume name=db,type=cloud-storage,bucket=staging-db
--add-volume-mount volume=db,mount-path=/var/mnt/staging-db/

0 comments on commit 4507fc2

Please sign in to comment.