2024-08-11 05:16:21 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: fetch
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git fetch --tags
|
|
|
|
|
|
|
|
- name: build
|
2024-08-11 05:41:44 +00:00
|
|
|
image: cimg/go:1.22.6
|
2024-08-11 05:16:21 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
path: /var/run/docker.sock
|
|
|
|
|
|
|
|
environment:
|
|
|
|
GITEA_TOKEN:
|
|
|
|
from_secret: gitea_token
|
|
|
|
|
|
|
|
commands:
|
|
|
|
- sudo chmod 666 /var/run/docker.sock
|
2024-08-11 09:44:24 +00:00
|
|
|
- echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | sudo tee /etc/apt/sources.list.d/goreleaser.list
|
|
|
|
- sudo apt update
|
|
|
|
- sudo apt install goreleaser
|
2024-08-11 05:16:21 +00:00
|
|
|
- sudo chown -R circleci:circleci .
|
2024-08-11 05:48:00 +00:00
|
|
|
- /tmp/goreleaser-download release --clean
|
2024-08-11 05:16:21 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
host:
|
|
|
|
path: /var/run/docker.sock
|