Skip to content

Commit

Permalink
trying to add permision
Browse files Browse the repository at this point in the history
  • Loading branch information
yfukai committed Jan 30, 2024
1 parent 78873bb commit aa4d964
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/delete-untagged-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,33 @@ on:
# or manually
workflow_dispatch:

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io

jobs:
delete-untagged-images:
name: Delete Untagged Images
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
strategy:
matrix:
image_name: [conda-jax, basicpy-docker-mcmicro]
steps:
# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: bots-house/[email protected]
with:
# NOTE: at now only orgs is supported
Expand Down

0 comments on commit aa4d964

Please sign in to comment.