ci: add docker build to release
Some checks failed
ci / build (push) Failing after 22s
ci / goreleaser (push) Successful in 1m3s

This commit is contained in:
Martin McCaffery 2026-02-12 11:15:30 +01:00
parent d713c25fa5
commit e1a4e9c579
Signed by: martin.mccaffery
GPG key ID: 7C4D0F375BCEE533
4 changed files with 33 additions and 4 deletions

View file

@ -25,11 +25,23 @@ jobs:
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Set up QEMU
uses: https://github.com/docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
- name: Install GoReleaser
uses: https://github.com/goreleaser/goreleaser-action@v5
uses: https://github.com/goreleaser/goreleaser-action@v6
with:
install-only: true
- name: Docker login
run: |
REGISTRY="${GITHUB_SERVER_URL#https://}"
echo "${{ secrets.PACKAGES_TOKEN }}" | docker login "$REGISTRY" -u "${{ github.repository_owner }}" --password-stdin
echo "DOCKER_REGISTRY=$REGISTRY" >> "$GITHUB_ENV"
echo "DOCKER_ORG=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
- name: Run GoReleaser
run: |
unset GITHUB_TOKEN