diff --git a/.gitea/workflows/docker-publish.yaml b/.gitea/workflows/docker-publish.yaml index fd595f7b..1a1d71a0 100644 --- a/.gitea/workflows/docker-publish.yaml +++ b/.gitea/workflows/docker-publish.yaml @@ -38,28 +38,24 @@ 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" # - 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: | + # Because the secret is now a native environment variable, we can write it directly. + # The double quotes around the indirect expansion preserve all newlines and internal single quotes! + echo "${!PROJECT_SECRET_KEY}" > "$ENV_FILE_PATH" - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3