Skip to content

Commit

Permalink
chore: adjust gcloud github actions pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
robsongajunior committed Dec 6, 2024
1 parent f763467 commit c4ecae3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,6 @@ jobs:
- name: UPDATING cache-control header from Google Cloud Storage
run: |
gcloud storage objects update -r gs://azdocs --cache-control="public, max-age=120"
# - name: INSTALL gcloud CLI
# run: |
# apt-get update && apt-get install -y curl apt-transport-https ca-certificates gnupg
# curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
# echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
# apt-get update && apt-get install -y google-cloud-sdk
# - uses: 'google-github-actions/auth@v2'
# with:
# credentials_json: ${{ secrets.GCP_EXP_ENG }}
# - name: UPDATING cache-control header from Google Cloud Storage
# run: |
# gcloud storage objects update -r gs://azdocs --cache-control="public, max-age=120"
- name: PURGE Documentation from Edge Cache
run: |
npm install axios
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,13 @@ jobs:
with:
secrets: ${{ secrets.GCP_EXP_ENG }}
bucket: azdocs-stage
- name: INSTALL gcloud CLI
run: |
apt-get update && apt-get install -y curl apt-transport-https ca-certificates gnupg
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
apt-get update && apt-get install -y google-cloud-sdk
- uses: 'google-github-actions/auth@v2'
- name: CONFIGURING gcloud CLI
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.GCP_EXP_ENG }}
- uses: 'google-github-actions/setup-gcloud@v2'
with:
version: '>= 363.0.0'
- name: UPDATING cache-control header from Google Cloud Storage
run: |
gcloud storage objects update -r gs://azdocs-stage --cache-control="public, max-age=120"
Expand Down

0 comments on commit c4ecae3

Please sign in to comment.