Skip to content

Commit

Permalink
Merge pull request #3 from Jorge-Ortiz-Mata/feature/updating_artifact…
Browse files Browse the repository at this point in the history
…_property_name

Artifact Registry - Updating property name.
Jorge-Ortiz-Mata authored May 21, 2023
2 parents bf54e23 + dd09ea9 commit dfd6a42
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/gcp-deployment.yml
Original file line number Diff line number Diff line change
@@ -42,15 +42,15 @@ jobs:
run: gcloud auth configure-docker us-central1-docker.pkg.dev

- name: Build Docker Image
run: docker build -t us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial-pr-${{ inputs.pr-number }}:latest .
run: docker build -t us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial:pr-${{ inputs.pr-number }} .

- name: Push Docker Image to Artifact Registry
run: docker push us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial-pr-${{ inputs.pr-number }}:latest
run: docker push us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial:pr-${{ inputs.pr-number }}

- name: Deploy service to Cloud Run
run: |
gcloud run deploy yorch-financial-pr-${{ inputs.pr-number }} \
--image us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial-pr-${{ inputs.pr-number }}:latest \
--image us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial:pr-${{ inputs.pr-number }} \
--allow-unauthenticated \
--port 3000 \
--region us-central1
@@ -83,15 +83,15 @@ jobs:
run: gcloud auth configure-docker us-central1-docker.pkg.dev

- name: Build Docker Image
run: docker build -t us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial-staging:latest .
run: docker build -t us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial:staging .

- name: Push Docker Image to Artifact Registry
run: docker push us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial-staging:latest
run: docker push us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial:staging

- name: Deploy service to Cloud Run
run: |
gcloud run deploy yorch-financial-staging \
--image us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial-staging:latest \
--image us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial:staging \
--allow-unauthenticated \
--port 3000 \
--region us-central1
@@ -124,15 +124,15 @@ jobs:
run: gcloud auth configure-docker us-central1-docker.pkg.dev

- name: Build Docker Image
run: docker build -t us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial-production:latest .
run: docker build -t us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial:production .

- name: Push Docker Image to Artifact Registry
run: docker push us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial-production:latest
run: docker push us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial:production

- name: Deploy service to Cloud Run
run: |
gcloud run deploy yorch-financial-production \
--image us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial-production:latest \
--image us-central1-docker.pkg.dev/yorch-financial/yorch-financial/yorch-financial:production \
--allow-unauthenticated \
--port 3000 \
--region us-central1

0 comments on commit dfd6a42

Please sign in to comment.