feat(workflows): init terraform

This commit is contained in:
2023-12-09 10:28:14 +02:00
parent 8c153bb976
commit 7a7d3aae4a
2 changed files with 24 additions and 12 deletions

View File

@@ -27,15 +27,19 @@ jobs:
uses: actions/checkout@v4
with:
repository: xaked/blackbox
path: /tmp/blackbox
path: blackbox
ref: master
- name: Install blackbox
shell: bash
run: |
cd blackbox || exit 1;
make copy-install;
cd ${{ github.workspace }};
rm -rf blackbox;
- name: Decrypt secrets
shell: bash
run: |
cd /tmp/blackbox || exit 1;
make copy-install;
echo ${{ secrets.gpg-key }} | base64 -d | gpg --import;
cd ${{ github.workspace }};
blackbox_decrypt_all_files;
- uses: hashicorp/setup-terraform@v2
with:
@@ -95,15 +99,19 @@ jobs:
uses: actions/checkout@v4
with:
repository: xaked/blackbox
path: /tmp/blackbox
path: blackbox
ref: master
- name: Install blackbox
shell: bash
run: |
cd blackbox || exit 1;
make copy-install;
cd ${{ github.workspace }};
rm -rf blackbox;
- name: Decrypt secrets
shell: bash
run: |
cd /tmp/blackbox || exit 1;
make copy-install;
echo ${{ secrets.gpg-key }} | base64 -d | gpg --import;
cd ${{ github.workspace }};
blackbox_decrypt_all_files;
- uses: hashicorp/setup-terraform@v2
with:

View File

@@ -25,15 +25,19 @@ jobs:
uses: actions/checkout@v4
with:
repository: xaked/blackbox
path: /tmp/blackbox
path: blackbox
ref: master
- name: Install blackbox
shell: bash
run: |
cd blackbox || exit 1;
make copy-install;
cd ${{ github.workspace }};
rm -rf blackbox;
- name: Decrypt secrets
shell: bash
run: |
cd /tmp/blackbox || exit 1;
make copy-install;
echo ${{ secrets.gpg-key }} | base64 -d | gpg --import;
cd ${{ github.workspace }};
blackbox_decrypt_all_files;
- uses: hashicorp/setup-terraform@v2
with: