Skip to content

Commit 4926e92

Browse files
author
Raymond Ottun
committed
ci: use the google registry
1 parent dca689e commit 4926e92

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ jobs:
9797
runs-on: ubuntu-latest
9898
needs:
9999
- version
100-
- publish
101100

102101
steps:
103102
- name: Check out the repo
@@ -110,12 +109,22 @@ jobs:
110109
with:
111110
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
112111

112+
- name: Configure Docker
113+
uses: docker/setup-buildx-action@v1
114+
115+
- name: Build and push Docker image
116+
uses: docker/build-push-action@v2
117+
with:
118+
context: .
119+
push: true
120+
tags: gcr.io/${{ secrets.PROJECT_ID }}/shopify-mimmic:${{ needs.version.outputs.tag }}
121+
113122
- name: Deploy to Google Cloud Run
114123
uses: google-github-actions/deploy-cloudrun@v1
115124
with:
116-
image: ghcr.io/${{ github.repository }}:${{ needs.version.outputs.tag }}
125+
image: gcr.io/${{ secrets.PROJECT_ID }}/shopify-mimmic:${{ needs.version.outputs.tag }}
117126
service: shopify-mimic
118-
region: us-central1
127+
region: europe-west2
119128
env_vars: |
120129
MIMIC_PORT=80
121130
MIMIC_MOCKS_DIRECTORY="/prefabs/shopfiy/mocks"

0 commit comments

Comments
 (0)