Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 10 additions & 13 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name: Prod

on:
push:
branches:
- ch-update-deployments
release:
types:
- released
Expand All @@ -14,6 +17,8 @@ jobs:
tag: ${{ steps.export.outputs.tag }}

runs-on: ubuntu-latest
env:
image: cranecloud/monitoring-api

steps:
- name: Checkout
Expand All @@ -24,27 +29,19 @@ jobs:
- name: Install (Buildx)
uses: docker/setup-buildx-action@v3

- name: Login (GCP)
uses: google-github-actions/auth@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
credentials_json: ${{ secrets.CREDENTIALS_JSON }}

- name: Install (Gcloud)
uses: google-github-actions/setup-gcloud@v1
with:
project_id: crane-cloud-274413
install_components: "gke-gcloud-auth-plugin"

- name: Login (GCR)
run: gcloud auth configure-docker
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- id: meta
name: Tag
uses: docker/metadata-action@v3
with:
flavor: |
latest=true
images: gcr.io/crane-cloud-274413/monitoring-api
images: ${{ env.image }}
tags: |
type=ref,event=branch
type=ref,event=pr
Expand Down
2 changes: 1 addition & 1 deletion helm/values.prod.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
replicaCount: 1

image:
repository: gcr.io/crane-cloud-274413/monitoring-api
repository: cranecloud/monitoring-api
pullPolicy: Always
tag: ${{ DOCKER_IMAGE_TAG }}

Expand Down
Loading