|
15 | 15 |
|
16 | 16 | env: |
17 | 17 | REGION: europe-west4 |
18 | | - SERVICE_NAME: fcb-api |
| 18 | + SERVICE_NAME: flatcitybuf-api |
19 | 19 | GAR_LOCATION: europe-west4 |
20 | | - GAR_REPOSITORY: cloud-run-source-deploy |
| 20 | + GAR_REPOSITORY: flatcitybuf-api |
21 | 21 |
|
22 | 22 | jobs: |
23 | 23 | build-and-push: |
@@ -52,27 +52,31 @@ jobs: |
52 | 52 | - name: Configure Docker for Artifact Registry |
53 | 53 | run: gcloud auth configure-docker ${{ env.GAR_LOCATION }}-docker.pkg.dev |
54 | 54 |
|
55 | | - - name: Extract metadata |
56 | | - id: meta |
57 | | - uses: docker/metadata-action@v5 |
58 | | - with: |
59 | | - images: ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ secrets.PROJECT_ID }}/${{ env.GAR_REPOSITORY }}/${{ env.SERVICE_NAME }} |
60 | | - tags: | |
61 | | - type=ref,event=branch |
62 | | - type=ref,event=pr |
63 | | - type=sha |
64 | | - type=raw,value=latest,enable={{is_default_branch}} |
| 55 | + # - name: Extract metadata |
| 56 | + # id: meta |
| 57 | + # uses: docker/metadata-action@v5 |
| 58 | + # with: |
| 59 | + # images: ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ secrets.PROJECT_ID }}/${{ env.GAR_REPOSITORY }}/${{ env.SERVICE_NAME }} |
| 60 | + # tags: | |
| 61 | + # type=ref,event=branch |
| 62 | + # type=ref,event=pr |
| 63 | + # type=sha |
| 64 | + # type=raw,value=latest,enable={{is_default_branch}} |
| 65 | + - name: "Build and push container" |
| 66 | + run: |- |
| 67 | + docker build -t "${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ secrets.PROJECT_ID }}/${{ env.GAR_REPOSITORY }}/${{ env.SERVICE_NAME }}:${{ github.sha }}" ./src/rust |
| 68 | + docker push "${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ secrets.PROJECT_ID }}/${{ env.GAR_REPOSITORY }}/${{ env.SERVICE_NAME }}:${{ github.sha }}" |
65 | 69 |
|
66 | | - - name: Build and push Docker image |
67 | | - uses: docker/build-push-action@v5 |
68 | | - with: |
69 | | - context: . |
70 | | - file: src/rust/Dockerfile |
71 | | - push: true |
72 | | - tags: ${{ steps.meta.outputs.tags }} |
73 | | - labels: ${{ steps.meta.outputs.labels }} |
74 | | - cache-from: type=gha |
75 | | - cache-to: type=gha,mode=max |
| 70 | + # - name: Build and push Docker image |
| 71 | + # uses: docker/build-push-action@v5 |
| 72 | + # with: |
| 73 | + # context: . |
| 74 | + # file: src/rust/Dockerfile |
| 75 | + # push: true |
| 76 | + # tags: ${{ steps.meta.outputs.tags }} |
| 77 | + # labels: ${{ steps.meta.outputs.labels }} |
| 78 | + # cache-from: type=gha |
| 79 | + # cache-to: type=gha,mode=max |
76 | 80 |
|
77 | 81 | deploy: |
78 | 82 | name: Deploy to Cloud Run |
|
0 commit comments