From 92ccfd804b5a0a3fb44df61b7a590b072160206c Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Mon, 6 May 2024 09:43:31 +0200 Subject: [PATCH] Update CI a bit --- .woodpecker/golang.yaml | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 .woodpecker/golang.yaml diff --git a/.woodpecker/golang.yaml b/.woodpecker/golang.yaml deleted file mode 100644 index 18664ce..0000000 --- a/.woodpecker/golang.yaml +++ /dev/null @@ -1,31 +0,0 @@ ---- -when: - event: - - push - branch: main - -steps: - lint: - name: Generate docs - image: pseudomuto/protoc-gen-doc - secrets: - - softplayer_bot_ssh_key - - git_known_hosts - commands: - - mkdir -p ~/.ssh - - apk update && apk add git openssh - - echo $SOFTPLAYER_BOT_SSH_KEY | base64 -d > ~/.ssh/id_ed25519 - - echo $GIT_KNOWN_HOSTS > ~/.ssh/known_hosts - - cat ~/.ssh/id_ed25519 - - chmod 0600 ~/.ssh/id_ed25519 - - protoc --proto_path=./proto --doc_out=. --doc_opt=markdown,readme.md $(find ./proto -type f -iname "*.proto") - - eval `ssh-agent` - - ssh-add ~/.ssh/id_ed25519 - - git config --global user.email "allanger@badhouseplants.net" - - git config --global user.name "Softplayer Bot" - - git clone git@git.badhouseplants.net:softplayer/softplayer-proto.git /tmp/repo - - git -C /tmp/repo checkout generated-documentation - - mv README.md /tmp/repo/README.md - - git -C /tmp/repo add . - - git -C /tmp/repo commit -m "Update documentation" - - git -C /tmp/repo push