Skip to content

Commit

Permalink
Update deploy-cloud-run-grafana-prod.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
dikshant-infracloud authored Aug 28, 2024
1 parent da4e0f1 commit 776ccb2
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/deploy-cloud-run-grafana-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,32 @@ jobs:
with:
credentials_json: ${{ secrets.GOOGLECLOUDSA_PROD }}

- uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-${{ github.workflow }}-${{ github.sha }}
restore-keys: ${{ runner.os }}-${{ github.workflow }}-

- run: gcloud auth configure-docker

- uses: docker/build-push-action@v5
with:
context: .
push: true
tags: gcr.io/coderabbitprod/grafana:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new

- name: Move Docker cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: Deploy to Cloud Run
run: gcloud run deploy grafana-internal --image gcr.io/coderabbitprod/grafana:latest --region us-central1 --allow-unauthenticated --vpc-connector=coderabbit-prod-connector
# - uses: docker/setup-buildx-action@v3

# - name: Cache Docker layers
# uses: actions/cache@v4
# with:
# path: /tmp/.buildx-cache
# key: ${{ runner.os }}-${{ github.workflow }}-${{ github.sha }}
# restore-keys: ${{ runner.os }}-${{ github.workflow }}-

# - run: gcloud auth configure-docker

# - uses: docker/build-push-action@v5
# with:
# context: .
# push: true
# tags: gcr.io/coderabbitprod/grafana:latest
# cache-from: type=local,src=/tmp/.buildx-cache
# cache-to: type=local,dest=/tmp/.buildx-cache-new

# - name: Move Docker cache
# run: |
# rm -rf /tmp/.buildx-cache
# mv /tmp/.buildx-cache-new /tmp/.buildx-cache

# - name: Deploy to Cloud Run
# run: gcloud run deploy grafana-internal --image gcr.io/coderabbitprod/grafana:latest --region us-central1 --allow-unauthenticated --vpc-connector=coderabbit-prod-connector

- name: Trigger a repository dispatch
run: |
Expand Down

0 comments on commit 776ccb2

Please sign in to comment.