feat(workflows): init terraform
This commit is contained in:
@@ -27,15 +27,19 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: xaked/blackbox
|
repository: xaked/blackbox
|
||||||
path: /tmp/blackbox
|
path: blackbox
|
||||||
ref: master
|
ref: master
|
||||||
|
- name: Install blackbox
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
cd blackbox || exit 1;
|
||||||
|
make copy-install;
|
||||||
|
cd ${{ github.workspace }};
|
||||||
|
rm -rf blackbox;
|
||||||
- name: Decrypt secrets
|
- name: Decrypt secrets
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd /tmp/blackbox || exit 1;
|
|
||||||
make copy-install;
|
|
||||||
echo ${{ secrets.gpg-key }} | base64 -d | gpg --import;
|
echo ${{ secrets.gpg-key }} | base64 -d | gpg --import;
|
||||||
cd ${{ github.workspace }};
|
|
||||||
blackbox_decrypt_all_files;
|
blackbox_decrypt_all_files;
|
||||||
- uses: hashicorp/setup-terraform@v2
|
- uses: hashicorp/setup-terraform@v2
|
||||||
with:
|
with:
|
||||||
@@ -95,15 +99,19 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: xaked/blackbox
|
repository: xaked/blackbox
|
||||||
path: /tmp/blackbox
|
path: blackbox
|
||||||
ref: master
|
ref: master
|
||||||
|
- name: Install blackbox
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
cd blackbox || exit 1;
|
||||||
|
make copy-install;
|
||||||
|
cd ${{ github.workspace }};
|
||||||
|
rm -rf blackbox;
|
||||||
- name: Decrypt secrets
|
- name: Decrypt secrets
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd /tmp/blackbox || exit 1;
|
|
||||||
make copy-install;
|
|
||||||
echo ${{ secrets.gpg-key }} | base64 -d | gpg --import;
|
echo ${{ secrets.gpg-key }} | base64 -d | gpg --import;
|
||||||
cd ${{ github.workspace }};
|
|
||||||
blackbox_decrypt_all_files;
|
blackbox_decrypt_all_files;
|
||||||
- uses: hashicorp/setup-terraform@v2
|
- uses: hashicorp/setup-terraform@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -25,15 +25,19 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: xaked/blackbox
|
repository: xaked/blackbox
|
||||||
path: /tmp/blackbox
|
path: blackbox
|
||||||
ref: master
|
ref: master
|
||||||
|
- name: Install blackbox
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
cd blackbox || exit 1;
|
||||||
|
make copy-install;
|
||||||
|
cd ${{ github.workspace }};
|
||||||
|
rm -rf blackbox;
|
||||||
- name: Decrypt secrets
|
- name: Decrypt secrets
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd /tmp/blackbox || exit 1;
|
|
||||||
make copy-install;
|
|
||||||
echo ${{ secrets.gpg-key }} | base64 -d | gpg --import;
|
echo ${{ secrets.gpg-key }} | base64 -d | gpg --import;
|
||||||
cd ${{ github.workspace }};
|
|
||||||
blackbox_decrypt_all_files;
|
blackbox_decrypt_all_files;
|
||||||
- uses: hashicorp/setup-terraform@v2
|
- uses: hashicorp/setup-terraform@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user