Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add gsutil #122

Merged
merged 3 commits into from Mar 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/pythonapp.yml
Expand Up @@ -6,6 +6,19 @@ env:
IMAGE_NAME: covid

jobs:
gsutil:
name: gsutil
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
with:
version: '270.0.0'
service_account_email: ${{ secrets.SA_EMAIL }}
service_account_key: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}

- run: |
gsutil -m acl set -R -a public-read gs://static-covid/
gsutil -m setmeta -h "Cache-Control:public, max-age=10" -R gs://static-covid/
checks:
name: checks
runs-on: ubuntu-latest
Expand Down Expand Up @@ -62,6 +75,10 @@ jobs:
# Configure docker to use the gcloud command-line tool as a credential helper
- run: |
gcloud auth configure-docker

- run: |
gsutil -m acl set -R -a public-read gs://static-covid/
gsutil -m setmeta -h "Cache-Control:public, max-age=10"

# Build the Docker image
- name: Build
Expand Down Expand Up @@ -106,4 +123,4 @@ jobs:
--values ./deploy/chart/values.yaml
--values ./deploy/chart/values.production.yaml
--set imageName=gcr.io/${{ secrets.GKE_PROJECT }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
--debug
--debug