mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 00:50:12 +00:00
build: push redoc after build
This commit is contained in:
parent
ef7132bf3d
commit
6308db495a
@ -12,14 +12,6 @@ clone:
|
|||||||
depth: 0
|
depth: 0
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: redoc
|
|
||||||
image: docker.io/hrfee/jfa-go-build-docker:latest
|
|
||||||
environment:
|
|
||||||
REDOC_SSH_ID:
|
|
||||||
from_secret: REDOC_SSH_ID
|
|
||||||
commands:
|
|
||||||
- sh -c "echo \"$REDOC_SSH_ID\" > /tmp/id_redoc && chmod 600 /tmp/id_redoc"
|
|
||||||
- bash -c 'sftp -P 3625 -i /tmp/id_redoc -o StrictHostKeyChecking=no redoc@api.jfa-go.com:/home/redoc <<< $"put docs/swagger.json jfa-go.json"'
|
|
||||||
- name: build
|
- name: build
|
||||||
image: docker.io/hrfee/jfa-go-build-docker:latest
|
image: docker.io/hrfee/jfa-go-build-docker:latest
|
||||||
environment:
|
environment:
|
||||||
@ -30,6 +22,14 @@ steps:
|
|||||||
- curl -sfL https://goreleaser.com/static/run > goreleaser
|
- curl -sfL https://goreleaser.com/static/run > goreleaser
|
||||||
- chmod +x goreleaser
|
- chmod +x goreleaser
|
||||||
- ./scripts/version.sh ./goreleaser --snapshot --skip=publish --clean
|
- ./scripts/version.sh ./goreleaser --snapshot --skip=publish --clean
|
||||||
|
- name: redoc
|
||||||
|
image: docker.io/hrfee/jfa-go-build-docker:latest
|
||||||
|
environment:
|
||||||
|
REDOC_SSH_ID:
|
||||||
|
from_secret: REDOC_SSH_ID
|
||||||
|
commands:
|
||||||
|
- sh -c "echo \"$REDOC_SSH_ID\" > /tmp/id_redoc && chmod 600 /tmp/id_redoc"
|
||||||
|
- bash -c 'sftp -P 3625 -i /tmp/id_redoc -o StrictHostKeyChecking=no redoc@api.jfa-go.com:/home/redoc <<< $"put docs/swagger.json jfa-go.json"'
|
||||||
- name: deb-repo
|
- name: deb-repo
|
||||||
image: docker.io/hrfee/jfa-go-build-docker:latest
|
image: docker.io/hrfee/jfa-go-build-docker:latest
|
||||||
environment:
|
environment:
|
||||||
|
Loading…
Reference in New Issue
Block a user