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
6249c254
Commit
6249c254
authored
Dec 10, 2025
by
Benavides Ontiveros
Browse files
add manual ingestion pipeline
parent
2762b320
Pipeline
#12271
failed
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci-ingest.yml
0 → 100644
View file @
6249c254
workflow
:
rules
:
-
when
:
manual
# run only when manually triggered
stages
:
-
ingest
ingest
:
stage
:
ingest
image
:
eclipse-temurin:17-jdk
tags
:
-
java
-
ubuntu
-
vm
-
reddit
before_script
:
-
apt-get update && apt-get install -y gettext jq
-
cp tools/filesystem-plugin-2.1.0.jar plugin.jar
-
envsubst < tools/user-config.json > user-config.json
-
echo "--- Listing files in /reddit_output ---"
-
ls -Ra /reddit_output/ || echo "No files found!"
-
echo "--- Listing files in /reddit_output/.meta ---"
-
ls -Ra /reddit_output/.meta || echo ".meta folder not found!"
script
:
-
echo "Running ingestion..."
-
java -jar plugin.jar "/reddit_output"
-
echo "Ingestion done."
\ No newline at end of file
.gitlab-ci.yml
View file @
6249c254
include
:
-
local
:
'
.gitlab-ci-ingest.yml'
stages
:
stages
:
-
lint
-
lint
-
test
-
test
...
@@ -125,6 +128,8 @@ ingest:
...
@@ -125,6 +128,8 @@ ingest:
# =====================================================================
# =====================================================================
build
:
build
:
stage
:
build
stage
:
build
rules
:
-
when
:
never
extends
:
.build_template
extends
:
.build_template
tags
:
tags
:
-
ubuntu
-
ubuntu
...
@@ -144,6 +149,8 @@ build:
...
@@ -144,6 +149,8 @@ build:
# =====================================================================
# =====================================================================
deploy
:
deploy
:
stage
:
deploy
stage
:
deploy
rules
:
-
when
:
never
extends
:
.build_template
extends
:
.build_template
tags
:
tags
:
-
ubuntu
-
ubuntu
...
@@ -151,9 +158,4 @@ deploy:
...
@@ -151,9 +158,4 @@ deploy:
-
reddit
-
reddit
script
:
script
:
-
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
-
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
-
docker push $DOCKERHUB_REPO:$CI_COMMIT_SHORT_SHA
-
docker push $DOCKERHUB
-
|
\ No newline at end of file
if [ "$CI_COMMIT_BRANCH" = "$CI_DEFAULT_BRANCH" ]; then
docker tag $DOCKERHUB_REPO:$CI_COMMIT_SHORT_SHA $DOCKERHUB_REPO:latest
docker push $DOCKERHUB_REPO:latest
fi
\ No newline at end of file
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