Skip to content

Commit 52fe977

Browse files
authored
Merge pull request #22 from drivecore/fix-docker-registry
fix docker registry
2 parents 2261f0d + 130737b commit 52fe977

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ jobs:
3939
4040
- name: Build and push Docker container
4141
run: |
42-
docker build -t $REGISTRY/$PROJECT_ID/cloud-run-deployments/$SERVICE_NAME:${{ github.sha }} .
43-
docker push $REGISTRY/$PROJECT_ID/cloud-run-deployments/$SERVICE_NAME:${{ github.sha }}
42+
docker build -t ${{ env.REGISTRY }}/${{ env.PROJECT_ID }}/shared-docker-registry/${{ env.SERVICE_NAME }}:${{ github.sha }}:${{ github.sha }} .
43+
docker push ${{ env.REGISTRY }}/${{ env.PROJECT_ID }}/shared-docker-registry/${{ env.SERVICE_NAME }}:${{ github.sha }}:${{ github.sha }}
4444
4545
- name: Deploy to Cloud Run
4646
id: deploy
4747
uses: google-github-actions/deploy-cloudrun@v2
4848
with:
4949
service: ${{ env.SERVICE_NAME }}
5050
region: ${{ env.REGION }}
51-
image: ${{ env.REGISTRY }}/${{ env.PROJECT_ID }}/cloud-run-deployments/${{ env.SERVICE_NAME }}:${{ github.sha }}
51+
image: ${{ env.REGISTRY }}/${{ env.PROJECT_ID }}/shared-docker-registry/${{ env.SERVICE_NAME }}:${{ github.sha }}
5252
flags: '--allow-unauthenticated'
5353

5454
- name: Show Output

0 commit comments

Comments
 (0)