diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 72c47a7..c95b7ba 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 @@ -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 @@ -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 }}