test pipeline
This commit is contained in:
@@ -20,6 +20,8 @@ jobs:
|
|||||||
- name: Custom Checkout
|
- name: Custom Checkout
|
||||||
env:
|
env:
|
||||||
ANSIBLE_VAULT_PASSWORD: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
|
ANSIBLE_VAULT_PASSWORD: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
|
||||||
|
SPEEDBB_REPO: ${{ vars.SPEEDBB_REPO }}
|
||||||
|
PROD_BASE_DIR: ${{ vars.PROD_BASE_DIR }}
|
||||||
ANSIBLE_POSIX_ACL: false
|
ANSIBLE_POSIX_ACL: false
|
||||||
run: |
|
run: |
|
||||||
git clone --quiet --no-checkout --depth=1 --branch=${{ gitea.ref_name }} ${{ vars.SPEEDBB_REPO }} ./repo
|
git clone --quiet --no-checkout --depth=1 --branch=${{ gitea.ref_name }} ${{ vars.SPEEDBB_REPO }} ./repo
|
||||||
@@ -33,8 +35,5 @@ jobs:
|
|||||||
ls -la
|
ls -la
|
||||||
cat hosts.ini
|
cat hosts.ini
|
||||||
echo "$ANSIBLE_VAULT_PASSWORD" > .vault_pass.txt
|
echo "$ANSIBLE_VAULT_PASSWORD" > .vault_pass.txt
|
||||||
echo "=== Vault contents ==="
|
|
||||||
ansible-vault view --vault-password-file .vault_pass.txt vars/vault.yaml
|
|
||||||
echo "=== End vault contents ==="
|
|
||||||
ansible-playbook --vault-password-file .vault_pass.txt deploy-to-prod.yaml
|
ansible-playbook --vault-password-file .vault_pass.txt deploy-to-prod.yaml
|
||||||
rm .vault_pass.txt
|
rm .vault_pass.txt
|
||||||
Reference in New Issue
Block a user