hako/.woodpecker/release.yml
Felipe M. e6122e15d3
All checks were successful
ci/woodpecker/tag/release Pipeline was successful
ci: install docker from official repository
2026-01-30 18:03:51 +01:00

47 lines
1.4 KiB
YAML

when:
- event: tag
branch: main
steps:
- name: Release
image: ubuntu:24.04
environment:
GITEA_TOKEN:
from_secret: GITEA_TOKEN
DOCKER_HOST: unix:///var/run/docker.sock
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
commands:
# Install system dependencies
- apt-get update
- apt-get install -y ca-certificates curl git make wget unzip upx-ucl
# Install Docker from official repository (for buildx support)
- curl -fsSL https://get.docker.com | sh
# Install Go 1.23
- wget -q https://go.dev/dl/go1.23.5.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.23.5.linux-amd64.tar.gz
- rm go1.23.5.linux-amd64.tar.gz
- export PATH="/usr/local/go/bin:$HOME/go/bin:$PATH"
# Install GoReleaser via go install
- go install github.com/goreleaser/goreleaser/v2@latest
# Install Bun (using official installer)
- curl -fsSL https://bun.sh/install | bash
- export PATH="$HOME/.bun/bin:$PATH"
# Setup Docker buildx for multi-platform builds
- docker buildx create --use --name multiplatform --driver docker-container
# Verify installations
- docker --version
- docker buildx version
- goreleaser --version
- bun --version
- upx --version
# Authenticate and release
- docker login -u fmartingr -p $GITEA_TOKEN git.nakama.town
- goreleaser release --clean