commit bad7e5d047729899ea81d116b3d6b0e59b899a2d Author: ardi Date: Thu Nov 13 09:20:33 2025 +0000 Add .gitea/workflows/cicd.yml diff --git a/.gitea/workflows/cicd.yml b/.gitea/workflows/cicd.yml new file mode 100644 index 0000000..da67a44 --- /dev/null +++ b/.gitea/workflows/cicd.yml @@ -0,0 +1,32 @@ +name: Testing Infisical + +on: + push: + branches: + - main + +jobs: + build: + runs-on: k8s-runner-00 + env: + REGISTRY: registry.staging + IMAGE_NAME: ${{ gitea.repository }} + IMAGE_TAG: ${{ gitea.sha }} + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install Infisical CLI + run: | + curl -fsSL https://cli.infisical.com/install.sh | bash + export PATH=$PATH:/usr/local/bin + + - name: Load environment variables from Infisical + env: + INFISICAL_URL: "https://vault.bigdata.pens.ac.id" + INFISICAL_TOKEN: "st.d618fb82-0118-4b34-ba0a-69214b7186b8.9dfd304c29151cbfd3b67c26cfcd149f.c0e0edc796f1d15a378d5245eacdf050" + run: | + echo "Fetching secrets from Infisical..." + eval "$(infisical export --format=dotenv --silent)" + echo "Environment loaded successfully. + ls -alth . \ No newline at end of file