Commit b71d1e6e authored by Philippe Charrière's avatar Philippe Charrière
Browse files

Update .gitlab-ci.yml

parent df2e6d26
Pipeline #7688 passed with stage
in 1 minute and 7 seconds
......@@ -71,7 +71,7 @@ variables:
echo "Branch's name: $CI_COMMIT_REF_NAME"
echo "Title of the commit: $CI_COMMIT_TITLE"
hello_python:
.hello_python:
image: python:slim
stage: polyglot
variables:
......@@ -83,7 +83,7 @@ hello_python:
script:
- python -c "$SOURCE_CODE"
hello_javascript:
.hello_javascript:
image: node:slim
stage: polyglot
variables:
......@@ -92,4 +92,29 @@ hello_javascript:
message = process.env.HELLO_MESSAGE
console.log(message)
script:
- node -e "$SOURCE_CODE"
\ No newline at end of file
- node -e "$SOURCE_CODE"
artefact_generator:
image: python:slim
stage: polyglot
variables:
HELLO_MESSAGE: "Hello from Python"
SOURCE_CODE: |
import os
message = os.environ.get('HELLO_MESSAGE')
my_file = f'''
<h1>
{message}
</h1>
'''
f = open("report.html", "a")
f.write(my_file)
f.close()
artifacts:
paths:
- report.html
script:
- python -c "$SOURCE_CODE"
Markdown is supported
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