DOC-4605 added ingress controller details #3419
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
test_gcs: | |
name: Test Google Cloud Storage access | |
runs-on: ubuntu-latest | |
env: | |
GCLOUD_VERSION: 458.0.1-linux-x86_64 | |
BUCKET: docs-prod-learn-redis-com | |
BUCKET_SERVICE_ACCOUNT: ${{ secrets.BUCKET_DOCUMENTATION_SA_PROD }} | |
BUCKET_SECRET: ${{ secrets.BUCKET_DOCUMENTATION_PROD }} | |
GCP_PROJECT: ${{ secrets.GCP_PROJECT_PROD }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Start | |
run: echo "The name of the branch is ${{ github.ref }} on ${{ github.repository }}" | |
- name: Fetch the credentails | |
run: echo $BUCKET_SECRET | base64 --decode > service_account.json && ls -a service_account.json | |
- name: Install the Google Cloud CLI | |
run: | | |
wget -O ${{ github.workspace }}/google-cloud-cli.tar.gz "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-$GCLOUD_VERSION.tar.gz" \ | |
&& tar -xvf google-cloud-cli.tar.gz -C ${{ github.workspace }}\ | |
&& ${{ github.workspace }}/google-cloud-sdk/install.sh --quiet | |
- name: Authenticate to Google Cloud | |
run: | | |
./google-cloud-sdk/bin/gcloud auth activate-service-account $BUCKET_SERVICE_ACCOUNT --key-file=./service_account.json --project=$GCP_PROJECT \ | |
&& ./google-cloud-sdk/bin/gcloud auth list | |
- name: List files | |
run: ./google-cloud-sdk/bin/gsutil ls gs://$BUCKET | |
- name: End | |
run: echo "This job's status is ${{ job.status }}." | |