mirror of https://github.com/hrfee/jfa-go
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.3 KiB
34 lines
1.3 KiB
when:
|
|
- event: tag
|
|
branch: main
|
|
|
|
steps:
|
|
- name: build
|
|
image: docker.io/hrfee/jfa-go-build-docker:latest
|
|
environment:
|
|
JFA_GO_BUILT_BY:
|
|
from_secret: BUILT_BY
|
|
commands:
|
|
- curl -sfL https://goreleaser.com/static/run > ../goreleaser
|
|
- chmod +x ../goreleaser
|
|
- ./scripts/version.sh ../goreleaser
|
|
- name: deb-repo
|
|
image: docker.io/hrfee/jfa-go-build-docker:latest
|
|
environment:
|
|
REPO_SSH_ID:
|
|
from_secret: REPO_SSH_ID
|
|
commands:
|
|
- sh -c "echo \"$REPO_SSH_ID\" > /tmp/id_repo && chmod 600 /tmp/id_repo"
|
|
- bash -c 'sftp -P 2022 -i /tmp/id_repo -o StrictHostKeyChecking=no root@apt.hrfee.dev:/repo/incoming <<< $"put dist/*.deb"'
|
|
- bash -c 'ssh -i /tmp/id_repo root@apt.hrfee.dev -p 2022 "repo-process-deb trusty"'
|
|
- bash -c 'ssh -i /tmp/id_repo root@apt.hrfee.dev -p 2022 "repo-process-deb trusty-unstable"'
|
|
- bash -c 'ssh -i /tmp/id_repo root@apt.hrfee.dev -p 2022 "rm -f /repo/incoming/*.deb"'
|
|
- name: buildrone
|
|
image: docker.io/hrfee/jfa-go-build-docker:latest
|
|
environment:
|
|
BUILDRONE_KEY:
|
|
from_secret: BUILDRONE_KEY
|
|
commands:
|
|
- wget https://builds.hrfee.pw/upload.py
|
|
- bash -c 'python3 upload.py https://builds.hrfee.pw hrfee jfa-go --tag internal=true'
|