Replaces manual tool installation (Docker, Go, GoReleaser, Bun) with the pre-built ci-release image from ci-images repository. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
708 B
YAML
23 lines
708 B
YAML
when:
|
|
- event: tag
|
|
branch: main
|
|
|
|
steps:
|
|
- name: Release
|
|
image: git.nakama.town/fmartingr/ci-images/ci-release:latest
|
|
environment:
|
|
GITEA_TOKEN:
|
|
from_secret: GITEA_TOKEN
|
|
DOCKER_HOST: unix:///var/run/docker.sock
|
|
volumes:
|
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
|
commands:
|
|
# Clone data repository
|
|
- git clone https://fmartingr:$GITEA_TOKEN@git.nakama.town/fmartingr/terraria-companion-data.git data
|
|
|
|
# Setup Docker buildx
|
|
- docker buildx create --use --name multiplatform --driver docker-container
|
|
|
|
# Authenticate and release
|
|
- docker login -u fmartingr -p $GITEA_TOKEN git.nakama.town
|
|
- goreleaser release --clean
|