Skip to content

Commit

Permalink
ok buddy
Browse files Browse the repository at this point in the history
  • Loading branch information
onlycs committed Jan 7, 2025
1 parent ad979dc commit abff21d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2


- name: Get current working directory
id: cwd
run: pwd

- name: Load target cache
uses: actions/cache/restore@v4
id: cache-restore
with:
path: |
${{ steps.cwd.outputs.stdout }}/target
/home/runner/work/attendance/attendance/src-api/target
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-rust-cache
Expand Down Expand Up @@ -69,6 +64,9 @@ jobs:
workload_identity_provider: ${{ secrets.GCP_WLIP }}
service_account: ${{ secrets.GCP_SA }}

- name: Setup GCP Docker
run: gcloud auth configure-docker us-central1-docker.pkg.dev

- name: Push to GCR
run: |
docker tag onlycs/attendance us-central1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/attendance/attendance:latest
Expand All @@ -87,7 +85,7 @@ jobs:
uses: actions/cache/save@v4
with:
path: |
${{ steps.cwd.outputs.stdout }}/target
/home/runner/work/attendance/attendance/src-api/target
~/.cargo/registry
~/.cargo/git
key: ${{ steps.cache-restore.outputs.cache-primary-key }}

0 comments on commit abff21d

Please sign in to comment.