From 46828d7e83e0e8267d7d7834b8508c9fe714f725 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Wed, 10 May 2023 14:14:47 -0400 Subject: [PATCH] * --- .gitattributes | 1 + .woodpecker.yml | 20 ++++++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..297d8e8 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.txt filter=git-crypt diff=git-crypt diff --git a/.woodpecker.yml b/.woodpecker.yml index 54c6f47..ad2bb5e 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -6,14 +6,18 @@ pipeline: when: event: push branch: main + secrets: [ gpg_keyfile ] commands: - - apk add --no-cache python3 poetry just - # - echo "===== 2015 =====" - # - cd 2015 - # - poetry install --no-interaction --no-root - # - just - # - cd .. - - echo "===== 2022 =====" - - cd 2022 + - apk add --no-cache git-crypt python3 poetry just + - echo "$GPG_KEYFILE" | base64 -d > tmp + - git-crypt unlock tmp + - rm tmp + - echo "===== 2015 =====" + - cd 2015 - poetry install --no-interaction --no-root - just + - cd .. + # - echo "===== 2022 =====" + # - cd 2022 + # - poetry install --no-interaction --no-root + # - just