Commit a7fe4cf5 authored by Benavides Ontiveros's avatar Benavides Ontiveros
Browse files

fix env variables

parent 9c709e92
Pipeline #12189 passed with stages
in 44 seconds
......@@ -80,22 +80,22 @@ generate:
image: python:3.10
tags: ["ubuntu", "vm"]
# 👇 Provide the same important environment variables as the Docker build
variables:
REDDIT_CLIENT_ID: "$REDDIT_CLIENT_ID"
REDDIT_CLIENT_SECRET: "$REDDIT_CLIENT_SECRET"
SOME_OTHER_VAR: "$SOME_OTHER_VAR" # Add if needed
REDDIT_CLIENT_ID: ${REDDIT_CLIENT_ID}
REDDIT_CLIENT_SECRET: ${REDDIT_CLIENT_SECRET}
SUBREDDITS: ${SUBREDDITS}
OUTPUT_DIR: "generated" # optional
before_script:
- pip install -r requirements.txt # If you need dependencies
- pip install -r requirements.txt
- mkdir -p generated
script: |
echo "Running file-generation script with environment variables..."
echo "REDDIT_CLIENT_ID is: $REDDIT_CLIENT_ID"
echo "REDDIT_CLIENT_SECRET is: ${REDDIT_CLIENT_SECRET:0:4}****"
echo "Environment variables received:"
echo "REDDIT_CLIENT_ID: ${REDDIT_CLIENT_ID:0:4}****"
echo "REDDIT_CLIENT_SECRET: ${REDDIT_CLIENT_SECRET:0:4}****"
echo "SUBREDDITS: $SUBREDDITS"
# Run your actual Python file generator
python app.py
artifacts:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment