mirror of
https://github.com/0xMassi/webclaw.git
synced 2026-04-25 00:06:21 +02:00
ci: add Docker image build to release workflow
Pushes ghcr.io/0xmassi/webclaw:latest and :vX.Y.Z on every tagged release. Uses BuildKit cache for fast rebuilds. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
81e78963d0
commit
b039b99858
1 changed files with 26 additions and 0 deletions
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
|
|
@ -6,6 +6,7 @@ on:
|
|||
|
||||
permissions:
|
||||
contents: write
|
||||
packages: write
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
|
@ -94,6 +95,31 @@ jobs:
|
|||
artifacts/*.tar.gz
|
||||
artifacts/SHA256SUMS
|
||||
|
||||
docker:
|
||||
name: Docker
|
||||
needs: release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/0xmassi/webclaw:latest
|
||||
ghcr.io/0xmassi/webclaw:${{ github.ref_name }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
homebrew:
|
||||
name: Update Homebrew
|
||||
needs: release
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue