Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
software-project-WS25
Reddit Team
Commits
a7fe4cf5
Commit
a7fe4cf5
authored
Nov 28, 2025
by
Benavides Ontiveros
Browse files
fix env variables
parent
9c709e92
Pipeline
#12189
passed with stages
in 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
a7fe4cf5
...
@@ -80,22 +80,22 @@ generate:
...
@@ -80,22 +80,22 @@ generate:
image
:
python:3.10
image
:
python:3.10
tags
:
[
"
ubuntu"
,
"
vm"
]
tags
:
[
"
ubuntu"
,
"
vm"
]
# 👇 Provide the same important environment variables as the Docker build
variables
:
variables
:
REDDIT_CLIENT_ID
:
"
$REDDIT_CLIENT_ID"
REDDIT_CLIENT_ID
:
${REDDIT_CLIENT_ID}
REDDIT_CLIENT_SECRET
:
"
$REDDIT_CLIENT_SECRET"
REDDIT_CLIENT_SECRET
:
${REDDIT_CLIENT_SECRET}
SOME_OTHER_VAR
:
"
$SOME_OTHER_VAR"
# Add if needed
SUBREDDITS
:
${SUBREDDITS}
OUTPUT_DIR
:
"
generated"
# optional
before_script
:
before_script
:
-
pip install -r requirements.txt
# If you need dependencies
-
pip install -r requirements.txt
-
mkdir -p generated
-
mkdir -p generated
script
:
|
script
:
|
echo "Running file-generation script with environment variables..."
echo "Environment variables received:"
echo "REDDIT_CLIENT_ID is: $REDDIT_CLIENT_ID"
echo "REDDIT_CLIENT_ID: ${REDDIT_CLIENT_ID:0:4}****"
echo "REDDIT_CLIENT_SECRET is: ${REDDIT_CLIENT_SECRET:0:4}****"
echo "REDDIT_CLIENT_SECRET: ${REDDIT_CLIENT_SECRET:0:4}****"
echo "SUBREDDITS: $SUBREDDITS"
# Run your actual Python file generator
python app.py
python app.py
artifacts
:
artifacts
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment