From 5c27361e1518716742b348f7c30cafc66f029674 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Sun, 17 Apr 2022 17:19:03 +0200 Subject: [PATCH] There's so many bugs in this yaml --- .woodpecker.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 9a4e2f44a8..1180ec402d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -13,6 +13,8 @@ pipeline: gen-vc: # This is what the official CI uses as well image: 'ubuntu:latest' + secrets: + - deploy_key commands: # Install ssh-agent if not present - 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )' @@ -24,8 +26,8 @@ pipeline: - mkdir -p ~/.ssh - chmod 700 ~/.ssh # Configure git credentials - - "git config --global user.email 'vbot@rustybever.be'" - - 'git config --global user.name "vbot"' + - git config --global user.email 'vbot@rustybever.be' + - git config --global user.name 'vbot' # The following is copied over from the official repo's CI # https://github.com/vlang/v/blob/master/.github/workflows/gen_vc.yml @@ -36,8 +38,8 @@ pipeline: - rm -rf vc/v.c vc/v_win.c - ./v -o vc/v.c -os cross cmd/v - ./v -o vc/v_win.c -os windows -cc msvc cmd/v - - 'sed -i "1s/^/#define V_COMMIT_HASH \"$COMMIT_HASH\"\n/" vc/v.c' - - 'sed -i "1s/^/#define V_COMMIT_HASH \"$COMMIT_HASH\"\n/" vc/v_win.c' + - 'sed -i "1s/^/#define V_COMMIT_HASH \\"$COMMIT_HASH\"\n/" vc/v.c' + - 'sed -i "1s/^/#define V_COMMIT_HASH \\"$COMMIT_HASH\"\n/" vc/v_win.c' # ensure the C files are over 5000 lines long, as a safety measure - [ $(wc -l < vc/v.c) -gt 5000 ] - [ $(wc -l < vc/v_win.c) -gt 5000 ]