This commit is contained in:
32
.gitea/workflows/cicd.yml
Normal file
32
.gitea/workflows/cicd.yml
Normal file
@@ -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 .
|
||||||
Reference in New Issue
Block a user