Merge pull request #175 from bobbycar-graz/gpg

This commit is contained in:
CommanderRedYT
2021-12-24 12:30:44 +01:00
committed by GitHub
5 changed files with 18 additions and 1 deletions

View File

@ -34,7 +34,12 @@ jobs:
uses: 0xFEEDC0DE64/setup_ccache@main
with:
key: ${{ runner.os }}-ccache-${{ matrix.node }}
- name: Unpack ignore folder
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
run: |
tools/bobby-decrypt
- name: Build firmware
run: |

1
.gitignore vendored
View File

@ -12,3 +12,4 @@ desktop.ini
/.ccache
/main/certs/*
/.vscode/*
/ignore.tar.gz

BIN
ignore.tar.gz.gpg Normal file

Binary file not shown.

3
tools/bobby-decrypt Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
gpg --quiet --batch --yes --decrypt --passphrase="$GPG_KEY" --output ./ignore.tar.gz ignore.tar.gz.gpg
tar xzf ignore.tar.gz

8
tools/bobby-encrypt Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
tar czf ignore.tar.gz ignore
if test -z ${BOBBY_GPG+y}
then
gpg -c --batch --yes ignore.tar.gz
else
gpg -c --batch --yes --passphrase=$BOBBY_GPG ignore.tar.gz
fi