Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 37 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ jobs:
steps:
- name: resolve_tag
run: echo "release_tag=${{ github.event.inputs.tag || github.ref_name }}" >> "$GITHUB_ENV"
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
path: dist
Expand All @@ -98,29 +101,50 @@ jobs:
gpg --batch --pinentry-mode loopback --passphrase "$gpg_passphrase" \
--armor --detach-sign --local-user "$key_id" \
-o SHA256SUMS.asc SHA256SUMS
- name: build_release_body
env:
repo: ${{ github.repository }}
run: |
current="$release_tag"
previous=$(git describe --tags --abbrev=0 "${current}^" 2>/dev/null || echo "")
{
echo "## install"
echo ""
echo '```bash'
echo "curl -fsSL https://raw.githubusercontent.com/${repo}/main/setup -o setup"
echo "sudo bash setup"
echo '```'
echo ""
echo "The installer downloads the matching binary for your platform, verifies it against \`SHA256SUMS\`, generates admin and readonly tokens into \`/etc/docker-proxy/config.yaml\`, and installs and starts the systemd service."
echo ""
echo "Linux builds are statically linked (musl). macOS builds: \`arm64\` for Apple Silicon, \`x86_64\` for Intel."
echo ""
echo "## changes"
echo ""
if [ -n "$previous" ]; then
git log --no-merges --pretty=format:'- %s (%h)' "${previous}..${current}"
else
git log --no-merges --pretty=format:'- %s (%h)'
fi
echo ""
if [ -n "$previous" ]; then
echo ""
echo "**full changelog:** https://github.com/${repo}/compare/${previous}...${current}"
fi
echo ""
echo "If \`SHA256SUMS.asc\` is attached, verify it with the project release signing key before trusting the checksums."
} > release_body.md
- name: publish_release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env.release_tag }}
name: ${{ env.release_tag }}
fail_on_unmatched_files: false
body_path: release_body.md
files: |
dist/docker-proxy-linux-x86_64
dist/docker-proxy-linux-aarch64
dist/docker-proxy-macos-x86_64
dist/docker-proxy-macos-arm64
dist/SHA256SUMS
dist/SHA256SUMS.asc
body: |
## install

```bash
curl -fsSL https://raw.githubusercontent.com/Nemu-Bridge/docker-proxy/main/setup -o setup
sudo bash setup
```

The installer downloads the matching binary for your platform, verifies it against `SHA256SUMS`, generates admin and readonly tokens into `/etc/docker-proxy/config.yaml`, and installs and starts the systemd service.

Linux builds are statically linked (musl). macOS builds: `arm64` for Apple Silicon, `x86_64` for Intel.

If `SHA256SUMS.asc` is attached, verify it with the project release signing key before trusting the checksums.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "docker-proxy"
version = "1.0.0"
version = "1.0.1"
edition = "2021"
default-run = "docker-proxy"

Expand Down
Loading