Skip to content

Commit

Permalink
Update podman-run.yml to get latest Binder package
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmclaug201 authored Feb 7, 2025
1 parent 0e411d9 commit b36e4c3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/podman-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ jobs:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
# Simply getting the master tagged package seems to always pick an older version,
# So query the github api for all versions and find the SHA-256 of the second
# most recent (GitHub seems to make multiple packages with each docker-publish run,
# and this seems to be the correct one to take)
script: |
podman stop binder
podman rm binder
podman run --name binder -dt -p 3000:3000/tcp ghcr.io/sc0v/binder:master
package_sha=`gh api orgs/sc0v/packages/container/binder/versions | jq -r '.[1].name'`
podman run --name binder -dt -p 3000:3000/tcp ghcr.io/sc0v/binder@"$package_sha"

0 comments on commit b36e4c3

Please sign in to comment.