From 6308db495a0aee206d2d9cd6047183ec9901291e Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Tue, 6 Aug 2024 21:06:06 +0100 Subject: [PATCH] build: push redoc after build --- .woodpecker/git-binary.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.woodpecker/git-binary.yaml b/.woodpecker/git-binary.yaml index b8c2d80..c9534c5 100644 --- a/.woodpecker/git-binary.yaml +++ b/.woodpecker/git-binary.yaml @@ -12,14 +12,6 @@ clone: depth: 0 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 image: docker.io/hrfee/jfa-go-build-docker:latest environment: @@ -30,6 +22,14 @@ steps: - curl -sfL https://goreleaser.com/static/run > goreleaser - chmod +x goreleaser - ./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 image: docker.io/hrfee/jfa-go-build-docker:latest environment: