Skip to content

ci: add package=write perms to deploy workflow #3

ci: add package=write perms to deploy workflow

ci: add package=write perms to deploy workflow #3

Workflow file for this run

---
name: Deploy cuiloa
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-container:

Check failure on line 10 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy cuiloa

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 10, Col: 3): Error calling workflow 'penumbra-zone/cuiloa/.github/workflows/container.yml@0b85d50fa7861873130bc402adcaec5f5a3dbbeb'. The nested job 'cuiloa' is requesting 'packages: write', but is only allowed 'packages: read'.
name: Build container
uses: ./.github/workflows/container.yml
secrets: inherit
deploy-preview:
name: Deploy cuiloa to preview
permissions:
contents: 'read'
id-token: 'write'
packages: 'write'
needs:
- build-container
runs-on: ubuntu-latest
steps:
- id: gcloudauth
uses: google-github-actions/auth@v0
with:
workload_identity_provider: 'projects/1006847873719/locations/global/workloadIdentityPools/gh-runner-pool/providers/my-provider'
service_account: 'github-actions@penumbra-sl-testnet.iam.gserviceaccount.com'
- name: get gke credentials
uses: google-github-actions/get-gke-credentials@v0
with:
cluster_name: testnet
project_id: penumbra-sl-testnet
location: us-central1
# We assume that cuiloa has been deployed to the cluster already.
# This task merely "bounces" the service, so that a fresh container is pulled.
- name: bounce cuiloa
run: kubectl rollout restart deployment cuiloa-preview