Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ci_cd_tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pedro Costa Klein
ci_cd_tutorial
Commits
c918bacb
Commit
c918bacb
authored
1 year ago
by
Pedro
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of gitlab.gwdg.de:pedro.costaklein/ci_cd_tutorial into main
parents
8f099a1b
84eb89b4
Branches
main
No related tags found
No related merge requests found
Pipeline
#346070
passed
1 year ago
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+28
-1
28 additions, 1 deletion
.gitlab-ci.yml
concatenate.py
+1
-1
1 addition, 1 deletion
concatenate.py
with
29 additions
and
2 deletions
.gitlab-ci.yml
+
28
−
1
View file @
c918bacb
pages
:
stage
:
build
script
:
-
mkdir public && cd public
-
echo "Greetings $GITLAB_USER_LOGIN" >> index.html
artifacts
:
paths
:
-
public
# mandatory, other folder won't work
test-job1
:
image
:
python:latest
stage
:
test
script
:
script
:
-
python -m pip install -r requirements.txt
-
python test_concatenate.py
hello-world
:
stage
:
build
script
:
-
echo $CI_CD_TEST_VAR
greetings
:
stage
:
build
script
:
-
echo "Greetings $GITLAB_USER_LOGIN" > greetings.txt
artifacts
:
when
:
on_success
expire_in
:
5 minutes
name
:
"
greetings"
paths
:
-
greetings.txt
This diff is collapsed.
Click to expand it.
concatenate.py
+
1
−
1
View file @
c918bacb
...
...
@@ -4,4 +4,4 @@ import sys
def
concatenate
(
a
,
b
):
"""
concatenate elements
"""
return
(
a
+
b
)
\ No newline at end of file
return
(
str
(
a
)
+
str
(
b
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment