try accepting self signed cert
All checks were successful
Docker Build / build-and-push-image (push) Successful in 46s
All checks were successful
Docker Build / build-and-push-image (push) Successful in 46s
This commit is contained in:
@@ -20,6 +20,7 @@ concurrency:
|
|||||||
id: vault-secrets
|
id: vault-secrets
|
||||||
with:
|
with:
|
||||||
url: https://vault.arcodange.lab
|
url: https://vault.arcodange.lab
|
||||||
|
caCertificate: ${{ secrets.HOMELAB_CA_CERT }}
|
||||||
jwtGiteaOIDC: ${{ needs.gitea_vault_auth.outputs.gitea_vault_jwt }}
|
jwtGiteaOIDC: ${{ needs.gitea_vault_auth.outputs.gitea_vault_jwt }}
|
||||||
role: gitea_cicd_webapp
|
role: gitea_cicd_webapp
|
||||||
method: jwt
|
method: jwt
|
||||||
@@ -30,25 +31,42 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
gitea_vault_auth:
|
gitea_vault_auth:
|
||||||
name: Auth with gitea for vault
|
name: Auth with gitea for vault
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest-ca
|
||||||
outputs:
|
outputs:
|
||||||
gitea_vault_jwt: ${{steps.gitea_vault_jwt.outputs.id_token}}
|
gitea_vault_jwt: ${{steps.gitea_vault_jwt.outputs.id_token}}
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Auth with gitea for vault
|
- name: Auth with gitea for vault
|
||||||
id: gitea_vault_jwt
|
id: gitea_vault_jwt
|
||||||
|
env:
|
||||||
|
HOMELAB_CA_CERT: ${{ secrets.HOMELAB_CA_CERT }}
|
||||||
run: |
|
run: |
|
||||||
|
set -x
|
||||||
|
|
||||||
|
echo <<EOT
|
||||||
|
$HOMELAB_CA_CERT
|
||||||
|
EOT
|
||||||
|
|
||||||
echo -n "${{ secrets.vault_oauth__sh_b64 }}" | base64 -d | bash
|
echo -n "${{ secrets.vault_oauth__sh_b64 }}" | base64 -d | bash
|
||||||
|
|
||||||
tofu:
|
tofu:
|
||||||
name: Tofu - Vault
|
name: Tofu - Vault
|
||||||
needs:
|
needs:
|
||||||
- gitea_vault_auth
|
- gitea_vault_auth
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest-ca
|
||||||
env:
|
env:
|
||||||
OPENTOFU_VERSION: 1.8.2
|
OPENTOFU_VERSION: 1.8.2
|
||||||
TERRAFORM_VAULT_AUTH_JWT: ${{ needs.gitea_vault_auth.outputs.gitea_vault_jwt }}
|
TERRAFORM_VAULT_AUTH_JWT: ${{ needs.gitea_vault_auth.outputs.gitea_vault_jwt }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: commands
|
||||||
|
run: |
|
||||||
|
set -x
|
||||||
|
|
||||||
|
echo <<EOT
|
||||||
|
${{ secrets.HOMELAB_CA_CERT }}
|
||||||
|
EOT
|
||||||
|
|
||||||
|
cat /usr/local/share/ca-certificates/root_ca.crt
|
||||||
- *vault_step
|
- *vault_step
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: terraform apply
|
- name: terraform apply
|
||||||
|
|||||||
Reference in New Issue
Block a user