Skip to content

Commit abf63ab

Browse files
committed
update prod deployments to use dockerhub image
1 parent dbaa192 commit abf63ab

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

.github/workflows/prod.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
tag: ${{ steps.export.outputs.tag }}
1515

1616
runs-on: ubuntu-latest
17+
env:
18+
image: cranecloud/monitoring-api
1719

1820
steps:
1921
- name: Checkout
@@ -24,27 +26,19 @@ jobs:
2426
- name: Install (Buildx)
2527
uses: docker/setup-buildx-action@v3
2628

27-
- name: Login (GCP)
28-
uses: google-github-actions/auth@v2
29+
- name: Login to Docker Hub
30+
uses: docker/login-action@v2
2931
with:
30-
credentials_json: ${{ secrets.CREDENTIALS_JSON }}
31-
32-
- name: Install (Gcloud)
33-
uses: google-github-actions/setup-gcloud@v1
34-
with:
35-
project_id: crane-cloud-274413
36-
install_components: "gke-gcloud-auth-plugin"
37-
38-
- name: Login (GCR)
39-
run: gcloud auth configure-docker
32+
username: ${{ secrets.DOCKERHUB_USERNAME }}
33+
password: ${{ secrets.DOCKERHUB_TOKEN }}
4034

4135
- id: meta
4236
name: Tag
4337
uses: docker/metadata-action@v3
4438
with:
4539
flavor: |
4640
latest=true
47-
images: gcr.io/crane-cloud-274413/monitoring-api
41+
images: ${{ env.image }}
4842
tags: |
4943
type=ref,event=branch
5044
type=ref,event=pr

0 commit comments

Comments
 (0)