Skip to content

Commit

Permalink
chore: Attempted to fix ghcr-cleaner to delete images that have just …
Browse files Browse the repository at this point in the history
…been build
  • Loading branch information
Fgruntjes committed Feb 1, 2023
1 parent e4d0049 commit 0211aa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/delete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
google_workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
google_service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_EMAIL }}
container_registry: ${{ secrets.GOOGLE_REGION }}-docker.pkg.dev
- uses: 'docker://europe-docker.pkg.dev/gcr-cleaner/gcr-cleaner/gcr-cleaner-cli'
- uses: docker://europe-docker.pkg.dev/gcr-cleaner/gcr-cleaner/gcr-cleaner-cli
with:
args: >-
-repo=${{ secrets.GOOGLE_REGION }}-docker.pkg.dev/${{ secrets.GOOGLE_PROJECT_ID }}/docker/${{ inputs.environment }}
Expand Down
1 change: 1 addition & 0 deletions deploy/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ gcloud iam service-accounts add-iam-policy-binding "${GOOGLE_SERVICE_ACCOUNT_EMA
--member="principalSet://iam.googleapis.com/${IDENTITY_POOL_ID}/attribute.repository/${GITHUB_REPOSITORY}"
GCLOUD_ROLES=(
"roles/artifactregistry.repoAdmin"
"roles/storage.objectViewer"
"roles/run.developer"
"roles/iam.serviceAccountUser"
)
Expand Down

0 comments on commit 0211aa7

Please sign in to comment.