ci: Force Infisical DNS resolution by dynamically adding its public IP to /etc/hosts and remove the container definition.
Some checks failed
List Infisical Secrets / list-secrets (push) Failing after 11s
Some checks failed
List Infisical Secrets / list-secrets (push) Failing after 11s
This commit is contained in:
@@ -8,10 +8,18 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
list-secrets:
|
list-secrets:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: docker.gitea.com/runner-images:ubuntu-latest
|
|
||||||
options: --network host
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Force DNS resolution
|
||||||
|
run: |
|
||||||
|
# Install dnsutils to get the 'dig' command
|
||||||
|
sudo apt-get update && sudo apt-get install -y dnsutils
|
||||||
|
|
||||||
|
# Dynamically fetch the public IP to handle dynamic DNS
|
||||||
|
# We query Cloudflare DNS (1.1.1.1) to ignore local/Tailscale records
|
||||||
|
PUBLIC_IP=$(dig +short @1.1.1.1 infisical.lemarechal.eu | tail -n1)
|
||||||
|
echo "Public IP found: $PUBLIC_IP"
|
||||||
|
echo "$PUBLIC_IP infisical.lemarechal.eu" | sudo tee -a /etc/hosts
|
||||||
|
|
||||||
- name: Fetch Secrets from Infisical
|
- name: Fetch Secrets from Infisical
|
||||||
uses: https://github.com/Infisical/secrets-action@v1.0.7
|
uses: https://github.com/Infisical/secrets-action@v1.0.7
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user