Skip to content

Commit cb0bd62

Browse files
committed
ci: fix
1 parent 5e1169a commit cb0bd62

File tree

1 file changed

+26
-22
lines changed

1 file changed

+26
-22
lines changed

.github/workflows/deploy-api.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ on:
1515

1616
env:
1717
REGION: europe-west4
18-
SERVICE_NAME: fcb-api
18+
SERVICE_NAME: flatcitybuf-api
1919
GAR_LOCATION: europe-west4
20-
GAR_REPOSITORY: cloud-run-source-deploy
20+
GAR_REPOSITORY: flatcitybuf-api
2121

2222
jobs:
2323
build-and-push:
@@ -52,27 +52,31 @@ jobs:
5252
- name: Configure Docker for Artifact Registry
5353
run: gcloud auth configure-docker ${{ env.GAR_LOCATION }}-docker.pkg.dev
5454

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 }}"
6569
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
7680

7781
deploy:
7882
name: Deploy to Cloud Run

0 commit comments

Comments
 (0)