diff --git a/.gitea/workflows/docker-publish.yaml b/.gitea/workflows/docker-publish.yaml index 5e2e58d0..fd595f7b 100644 --- a/.gitea/workflows/docker-publish.yaml +++ b/.gitea/workflows/docker-publish.yaml @@ -38,28 +38,28 @@ jobs: env-slug: ${{ steps.env_config.outputs.INFISICAL_ENV }} project-slug: "syscom-xpq-0" domain: "https://infisical.biz360.me/" - # export-type: "file" - # file-output-path: "/infisical.env" - export-type: "json" # Changed from "file" - file-output-path: "infisical.json" # Changed to .json - - # - name: Brute-force overwrite environment.ts - # run: | - # source infisical.env - - # # Forcefully overwrite the file the developers are importing - # echo "${!PROJECT_SECRET_KEY}" > "$ENV_FILE_PATH" - - # # Clean up - # rm -f infisical.env + export-type: "file" + file-output-path: "/infisical.env" + # export-type: "json" # Changed from "file" + # file-output-path: "infisical.json" # Changed to .json - name: Brute-force overwrite environment.ts run: | - # Use jq to extract the exact string value, preserving all quotes and newlines - jq -r '.MASTERADMINUI' infisical.json > "$ENV_FILE_PATH" + source infisical.env + + # Forcefully overwrite the file the developers are importing + echo "${!PROJECT_SECRET_KEY}" > "$ENV_FILE_PATH" # Clean up - rm -f infisical.json + rm -f infisical.env + + # - name: Brute-force overwrite environment.ts + # run: | + # # Use jq to extract the exact string value, preserving all quotes and newlines + # jq -r '.MASTERADMINUI' infisical.json > "$ENV_FILE_PATH" + + # # Clean up + # rm -f infisical.json - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3