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
f701b76a
Commit
f701b76a
authored
Nov 29, 2025
by
Benavides Ontiveros
Browse files
change stages order
parent
47ea746b
Pipeline
#12242
canceled with stages
in 2 minutes and 36 seconds
Changes
1
Pipelines
7
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
f701b76a
...
...
@@ -106,32 +106,6 @@ generate:
rules
:
-
if
:
'
$CI_COMMIT_BRANCH'
# =====================================================================
# BUILD
# =====================================================================
build
:
stage
:
build
extends
:
.build_template
script
:
|
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
echo "Building Docker image for commit: ${CI_COMMIT_SHORT_SHA}"
docker build \
--build-arg REDDIT_CLIENT_ID="$REDDIT_CLIENT_ID" \
--build-arg REDDIT_CLIENT_SECRET="$REDDIT_CLIENT_SECRET" \
-t $DOCKERHUB_REPO:$CI_COMMIT_SHORT_SHA .
after_script
:
-
echo "Docker image built successfully!"
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
when
:
never
-
if
:
'
$CI_COMMIT_BRANCH'
-
if
:
'
$CI_COMMIT_TAG'
when
:
never
# =====================================================================
# INGEST DATA
# =====================================================================
...
...
@@ -159,7 +133,7 @@ ingest:
script
:
|
echo "Running BigData4Biz ingestion..."
java -jar plugin.jar
bigdata-config.json
java -jar plugin.jar
echo "Ingestion finished."
rules
:
...
...
@@ -175,6 +149,32 @@ ingest:
-
logs/
-
generated/
# =====================================================================
# BUILD
# =====================================================================
build
:
stage
:
build
extends
:
.build_template
script
:
|
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
echo "Building Docker image for commit: ${CI_COMMIT_SHORT_SHA}"
docker build \
--build-arg REDDIT_CLIENT_ID="$REDDIT_CLIENT_ID" \
--build-arg REDDIT_CLIENT_SECRET="$REDDIT_CLIENT_SECRET" \
-t $DOCKERHUB_REPO:$CI_COMMIT_SHORT_SHA .
after_script
:
-
echo "Docker image built successfully!"
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
when
:
never
-
if
:
'
$CI_COMMIT_BRANCH'
-
if
:
'
$CI_COMMIT_TAG'
when
:
never
# =====================================================================
# DEPLOY
# =====================================================================
...
...
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