From a2c77e4eac9d413098a32b93b20dbd7e2b9f317b Mon Sep 17 00:00:00 2001 From: Ryan Freeman Date: Tue, 20 Aug 2024 22:06:35 +0100 Subject: [PATCH] update workflow --- .env.gpg | 1 - .gitea/workflows/decrypt_secrets.yml | 2 +- .gitignore | 3 ++- decrypt_secrets.sh | 2 +- secrets.gpg | 2 ++ 5 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 .env.gpg create mode 100644 secrets.gpg diff --git a/.env.gpg b/.env.gpg deleted file mode 100644 index 6b0cd9a..0000000 --- a/.env.gpg +++ /dev/null @@ -1 +0,0 @@ -  -)ygUlHߚs(*} ϵ9HtRwCK5pH40ΉiV{?3&j|(&L2˟՘PT:I2hq{  \ No newline at end of file diff --git a/.gitea/workflows/decrypt_secrets.yml b/.gitea/workflows/decrypt_secrets.yml index a04042d..5a83322 100644 --- a/.gitea/workflows/decrypt_secrets.yml +++ b/.gitea/workflows/decrypt_secrets.yml @@ -15,7 +15,7 @@ jobs: # Ensure you remove any print statements of your secrets. GitHub does # not hide secrets that use this workaround. - name: Test printing your secret (Remove this step in production) - run: cat ./.env + run: cat ./secrets - name: List files in the repository run: | ls ${{ gitea.workspace }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 13d4ac5..8c300ca 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .env -.idea/ \ No newline at end of file +.idea/ +secrets \ No newline at end of file diff --git a/decrypt_secrets.sh b/decrypt_secrets.sh index fb1efa1..59ec9a8 100755 --- a/decrypt_secrets.sh +++ b/decrypt_secrets.sh @@ -3,4 +3,4 @@ # --batch to prevent interactive command # --yes to assume "yes" for questions gpg --quiet --batch --yes --decrypt --passphrase="$SECRET_PASSPHRASE" \ ---output ./.env ./.env.gpg +--output ./secrets ./secrets.gpg diff --git a/secrets.gpg b/secrets.gpg new file mode 100644 index 0000000..8c886dc --- /dev/null +++ b/secrets.gpg @@ -0,0 +1,2 @@ +  Q㱿jYc0J `ϖd9iCa߹_jlQ +.Lܯ N`cNA KQ֠`*( UE"f \ No newline at end of file