Bug in v0.1.0's image:ghcr.io/coffey-labs/cairnobs:0.1.0 fails to start, exec: "/usr/bin/obs-beacond": permission denied. Release downloads are 0644 and the Containerfile copies the binaries with the mode they have. (The local test before tagging used freshly built, executable files.)
scripts/build-image.sh: chmod 0755 the binaries in the build context, so building from downloaded release files works for anyone (the docs say to do exactly that).
.github/workflows/release.yml: chmod after the checks, since a re-run checks out the tag's own build-image.sh; and after pushing, it pulls the image and runs both binaries' -version, failing if either doesn't start or says another version.
Tested: v0.1.0's downloaded binaries through the fixed steps, amd64 image loaded locally, both say 0.1.0.
After merging: gh workflow run release.yml --ref main -f tag=v0.1.0 republishes :0.1.0 and :latest (the GitHub Release step skips, it exists).
**Bug in v0.1.0's image:** `ghcr.io/coffey-labs/cairnobs:0.1.0` fails to start, `exec: "/usr/bin/obs-beacond": permission denied`. Release downloads are 0644 and the Containerfile copies the binaries with the mode they have. (The local test before tagging used freshly built, executable files.)
- `scripts/build-image.sh`: `chmod 0755` the binaries in the build context, so building from downloaded release files works for anyone (the docs say to do exactly that).
- `.github/workflows/release.yml`: `chmod` after the checks, since a re-run checks out the tag's own build-image.sh; and after pushing, it pulls the image and runs both binaries' `-version`, failing if either doesn't start or says another version.
Tested: v0.1.0's downloaded binaries through the fixed steps, amd64 image loaded locally, both say `0.1.0`.
After merging: `gh workflow run release.yml --ref main -f tag=v0.1.0` republishes `:0.1.0` and `:latest` (the GitHub Release step skips, it exists).
A release's binaries download as 0644 and the image keeps the mode it's
given, so v0.1.0's first image couldn't start (exec: permission denied).
build-image.sh now makes them executable in its build context, the GitHub
workflow does too after checking them, and the workflow then runs both
binaries from the pushed image and checks their version.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bug in v0.1.0's image:
ghcr.io/coffey-labs/cairnobs:0.1.0fails to start,exec: "/usr/bin/obs-beacond": permission denied. Release downloads are 0644 and the Containerfile copies the binaries with the mode they have. (The local test before tagging used freshly built, executable files.)scripts/build-image.sh:chmod 0755the binaries in the build context, so building from downloaded release files works for anyone (the docs say to do exactly that)..github/workflows/release.yml:chmodafter the checks, since a re-run checks out the tag's own build-image.sh; and after pushing, it pulls the image and runs both binaries'-version, failing if either doesn't start or says another version.Tested: v0.1.0's downloaded binaries through the fixed steps, amd64 image loaded locally, both say
0.1.0.After merging:
gh workflow run release.yml --ref main -f tag=v0.1.0republishes:0.1.0and:latest(the GitHub Release step skips, it exists).