Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

CI: unused images #3

Closed
wants to merge 4 commits into from
Closed

CI: unused images #3

wants to merge 4 commits into from

Conversation

vaind
Copy link
Contributor

@vaind vaind commented Apr 11, 2022

Closes #1

The current version requires manually deleting the old images (which I cannot do BTW). We'd need a token with enough credentials to do it automatically in CI. I've tried it like this and couldn't even use the rest API to list the existing versions, despite them being publicly available:

  $auth = @{Authorization = "Token ${$env:GITHUB_TOKEN}"; Accept = 'application/vnd.github.machine-man-preview+json'}
  Invoke-WebRequest -Headers $headers https://api.github.com/orgs/getsentry/packages/container/unity-docker
shell: /usr/bin/pwsh -command ". '{0}'"
Invoke-WebRequest: /home/runner/work/_temp/64b046cc-[3](https://github.com/getsentry/unity-docker/runs/5972377069?check_suite_focus=true#step:3:3)a11-[4](https://github.com/getsentry/unity-docker/runs/5972377069?check_suite_focus=true#step:3:4)2e0-b0df-[5](https://github.com/getsentry/unity-docker/runs/5972377069?check_suite_focus=true#step:3:5)[6](https://github.com/getsentry/unity-docker/runs/5972377069?check_suite_focus=true#step:3:6)2[7](https://github.com/getsentry/unity-docker/runs/5972377069?check_suite_focus=true#step:3:7)03c[8](https://github.com/getsentry/unity-docker/runs/5972377069?check_suite_focus=true#step:3:8)c5ae.ps1:5
Line |
   5 |  Invoke-WebRequest -Headers $headers https://api.github.com/orgs/getse …
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | {"message":"Requires
     | authentication","documentation_url":"https://docs.github.com/rest/reference/packages#get-a-package-for-an-organization"}

@vaind vaind force-pushed the chore/delete-unused branch from 750d8b5 to 5d72777 Compare April 11, 2022 13:47
@vaind vaind closed this Aug 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automation suggestion
1 participant