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.
173 lines
5.2 KiB
173 lines
5.2 KiB
4 years ago
|
---
|
||
|
name: jfa-go
|
||
|
kind: pipeline
|
||
|
type: docker
|
||
|
|
||
|
steps:
|
||
|
- name: fetch
|
||
|
image: docker:git
|
||
|
commands:
|
||
|
- git fetch --tags
|
||
|
- name: release
|
||
4 years ago
|
image: hrfee/jfa-go-build-docker:latest
|
||
4 years ago
|
volumes:
|
||
|
- name: ssh_key
|
||
|
path: /id_rsa
|
||
4 years ago
|
environment:
|
||
4 years ago
|
BUILDRONE_KEY:
|
||
|
from_secret: BUILDRONE_KEY
|
||
4 years ago
|
GITHUB_TOKEN:
|
||
|
from_secret: github_token
|
||
1 year ago
|
JFA_GO_BUILT_BY:
|
||
|
from_secret: BUILT_BY
|
||
4 years ago
|
commands:
|
||
4 years ago
|
- curl -sL https://git.io/goreleaser > ../goreleaser
|
||
|
- chmod +x ../goreleaser
|
||
|
- ./scripts/version.sh ../goreleaser
|
||
4 years ago
|
- wget https://builds.hrfee.pw/upload.py -P ../
|
||
4 years ago
|
- pip3 install requests
|
||
4 years ago
|
- bash -c 'sftp -P 2022 -i /id_rsa -o StrictHostKeyChecking=no root@161.97.102.153:/repo/incoming <<< $"put dist/*.deb"'
|
||
|
- bash -c 'ssh -i /id_rsa root@161.97.102.153 -p 2022 "repo-process-deb trusty"'
|
||
1 year ago
|
bash -c 'ssh -i /id_rsa root@161.97.102.153 -p 2022 "rm /repo/incoming/*.deb"'
|
||
4 years ago
|
- bash -c 'python3 ../upload.py https://builds.hrfee.pw hrfee jfa-go --tag internal=true'
|
||
4 years ago
|
volumes:
|
||
|
- name: ssh_key
|
||
|
host:
|
||
|
path: /root/.ssh/id_rsa_packaging
|
||
4 years ago
|
trigger:
|
||
4 years ago
|
event:
|
||
|
- tag
|
||
4 years ago
|
---
|
||
4 years ago
|
name: docker-buildx
|
||
4 years ago
|
kind: pipeline
|
||
|
type: docker
|
||
4 years ago
|
|
||
4 years ago
|
steps:
|
||
4 years ago
|
- name: build-deploy
|
||
4 years ago
|
image: appleboy/drone-ssh
|
||
11 months ago
|
environment:
|
||
|
BUILDRONE_KEY:
|
||
|
from_secret: BUILDRONE_KEY
|
||
4 years ago
|
settings:
|
||
|
host:
|
||
4 years ago
|
from_secret: ssh2_host
|
||
4 years ago
|
username:
|
||
4 years ago
|
from_secret: ssh2_username
|
||
4 years ago
|
port:
|
||
4 years ago
|
from_secret: ssh2_port
|
||
11 months ago
|
envs:
|
||
|
- buildrone_key
|
||
11 months ago
|
key:
|
||
|
from_secret: ssh2_key
|
||
4 years ago
|
command_timeout: 50m
|
||
4 years ago
|
script:
|
||
4 years ago
|
- /mnt/buildx/jfa-go/build.sh stable
|
||
4 years ago
|
- wget https://builds.hrfee.pw/upload.py -O /mnt/buildx/jfa-go/jfa-go/upload.py
|
||
4 years ago
|
- pip3 install requests
|
||
11 months ago
|
- bash -c 'cd /mnt/buildx/jfa-go/jfa-go && python3 upload.py https://builds.hrfee.pw hrfee jfa-go --tag docker-stable=true'
|
||
4 years ago
|
- rm -f /mnt/buildx/jfa-go/jfa-go/upload.py
|
||
4 years ago
|
trigger:
|
||
4 years ago
|
event:
|
||
|
- tag
|
||
4 years ago
|
---
|
||
4 years ago
|
name: jfa-go-git
|
||
|
kind: pipeline
|
||
|
type: docker
|
||
|
|
||
|
steps:
|
||
|
- name: build
|
||
4 years ago
|
image: hrfee/jfa-go-build-docker:latest
|
||
4 years ago
|
volumes:
|
||
|
- name: ssh_key
|
||
|
path: /id_rsa
|
||
3 years ago
|
- name: ssh_key2
|
||
|
path: /id_rsa2
|
||
4 years ago
|
commands:
|
||
4 years ago
|
- curl -sL https://git.io/goreleaser > goreleaser
|
||
|
- chmod +x goreleaser
|
||
5 months ago
|
- ./scripts/version.sh ./goreleaser --snapshot --skip=publish --clean
|
||
4 years ago
|
- wget https://builds.hrfee.pw/upload.py
|
||
4 years ago
|
- pip3 install requests
|
||
3 years ago
|
- bash -c 'sftp -i /id_rsa2 -o StrictHostKeyChecking=no root@161.97.102.153:/mnt/redoc <<< $"put docs/swagger.json jfa-go.json"'
|
||
4 years ago
|
- bash -c 'sftp -P 2022 -i /id_rsa -o StrictHostKeyChecking=no root@161.97.102.153:/repo/incoming <<< $"put dist/*.deb"'
|
||
4 years ago
|
# - bash -c 'ssh -i /id_rsa root@161.97.102.153 -p 2022 "reprepro -Vb /repo remove trusty-unstable jfa-go"'
|
||
|
# - bash -c 'ssh -i /id_rsa root@161.97.102.153 -p 2022 "reprepro -Vb /repo remove trusty-unstable jfa-go-tray"'
|
||
4 years ago
|
- bash -c 'ssh -i /id_rsa root@161.97.102.153 -p 2022 "repo-process-deb trusty"'
|
||
1 year ago
|
bash -c 'ssh -i /id_rsa root@161.97.102.153 -p 2022 "rm /repo/incoming/*.deb"'
|
||
4 years ago
|
- bash -c 'python3 upload.py https://builds.hrfee.pw hrfee jfa-go --upload ./dist/*.zip ./dist/*.rpm ./dist/*.apk --tag internal-git=true'
|
||
4 years ago
|
environment:
|
||
|
BUILDRONE_KEY:
|
||
|
from_secret: BUILDRONE_KEY
|
||
1 year ago
|
JFA_GO_BUILT_BY:
|
||
|
from_secret: BUILT_BY
|
||
1 year ago
|
JFA_GO_SNAPSHOT: y
|
||
4 years ago
|
|
||
4 years ago
|
volumes:
|
||
|
- name: ssh_key
|
||
|
host:
|
||
|
path: /root/.ssh/id_rsa_packaging
|
||
3 years ago
|
- name: ssh_key2
|
||
|
host:
|
||
|
path: /root/.ssh/docker-build
|
||
4 years ago
|
trigger:
|
||
|
branch:
|
||
|
- main
|
||
|
- go1.16
|
||
|
event:
|
||
|
exclude:
|
||
|
- pull_request
|
||
|
|
||
|
---
|
||
4 years ago
|
name: docker-buildx-unstable
|
||
4 years ago
|
kind: pipeline
|
||
|
type: docker
|
||
|
|
||
|
steps:
|
||
4 years ago
|
- name: build-deploy
|
||
4 years ago
|
image: appleboy/drone-ssh
|
||
11 months ago
|
environment:
|
||
|
BUILDRONE_KEY:
|
||
|
from_secret: BUILDRONE_KEY
|
||
4 years ago
|
settings:
|
||
4 years ago
|
host:
|
||
4 years ago
|
from_secret: ssh2_host
|
||
4 years ago
|
username:
|
||
4 years ago
|
from_secret: ssh2_username
|
||
4 years ago
|
port:
|
||
4 years ago
|
from_secret: ssh2_port
|
||
11 months ago
|
envs:
|
||
|
- buildrone_key
|
||
11 months ago
|
key:
|
||
|
from_secret: ssh2_key
|
||
4 years ago
|
command_timeout: 50m
|
||
4 years ago
|
script:
|
||
4 years ago
|
- /mnt/buildx/jfa-go/build.sh
|
||
4 years ago
|
- wget https://builds.hrfee.pw/upload.py -O /mnt/buildx/jfa-go/jfa-go/upload.py
|
||
4 years ago
|
- pip3 install requests
|
||
11 months ago
|
- bash -c 'cd /mnt/buildx/jfa-go/jfa-go && python3 upload.py https://builds.hrfee.pw hrfee jfa-go --tag docker-unstable=true'
|
||
4 years ago
|
- rm -f /mnt/buildx/jfa-go/jfa-go/upload.py
|
||
4 years ago
|
trigger:
|
||
|
branch:
|
||
|
- main
|
||
|
event:
|
||
|
exclude:
|
||
|
- pull_request
|
||
|
|
||
4 years ago
|
---
|
||
4 years ago
|
name: jfa-go-pr
|
||
|
kind: pipeline
|
||
|
type: docker
|
||
|
|
||
|
steps:
|
||
|
- name: build
|
||
3 years ago
|
image: hrfee/jfa-go-build-docker:latest
|
||
4 years ago
|
commands:
|
||
4 years ago
|
- curl -sL https://git.io/goreleaser > goreleaser
|
||
|
- chmod +x goreleaser
|
||
5 months ago
|
- ./scripts/version.sh ./goreleaser --snapshot --skip=publish --clean
|
||
4 years ago
|
|
||
|
trigger:
|
||
|
event:
|
||
|
include:
|
||
|
- pull_request
|