Skip to content
Snippets Groups Projects
Commit 23edfb77 authored by romanvalov's avatar romanvalov
Browse files

test dotenv

parent 949fb7dd
No related branches found
No related tags found
No related merge requests found
Pipeline #8277 passed
...@@ -3,34 +3,59 @@ variables: ...@@ -3,34 +3,59 @@ variables:
GLOBAL2: "$GLOBAL1" GLOBAL2: "$GLOBAL1"
.run: .build:
variables: variables:
LOCAL1: "test!" LOCAL1: "test!"
LOCAL2: "$LOCAL1" LOCAL2: "$LOCAL1"
image: quay.io/os-forge/rpm-ostree-engine:0.2.0
stage: build stage: build
cache:
key: $ARCH
when: always
paths:
- repo/
script: script:
- rm -f ./job.tmp - rm -f ./job.env
- touch ./job.tmp - touch ./job.env
- echo "$GLOBAL1" >> ./job.tmp - echo "VAR1=$GLOBAL1" >> ./job.env
- echo "$GLOBAL2" >> ./job.tmp - echo "VAR2=$GLOBAL2" >> ./job.env
- echo "$LOCAL1" >> ./job.tmp - echo "VAR3=$LOCAL1" >> ./job.env
- echo "$LOCAL2" >> ./job.tmp - echo "VAR4=$LOCAL2" >> ./job.env
- cp -f ./job.tmp ./job.txt - cp -f ./job.env ./job.txt
- cp -f ./job.tmp ./job.log - cp -f ./job.env ./job.log
artifacts: artifacts:
paths: paths:
- ./*.txt - ./*.txt
- ./*.log - ./*.log
reports:
dotenv: job.env
.test:
image: quay.io/os-forge/rpm-ostree-engine:0.2.0
stage: test
before_script:
- env
script:
- env
after_script:
- env
build-x86_64:
extends: .build
variables:
ARCH: x86_64
tags:
- x86_64
- selinux
build-aarch64:
extends: .build
variables:
ARCH: aarch64
tags:
- aarch64
- selinux
run-x86_64: test-x86_64:
extends: .run extends: .test
variables: variables:
ARCH: x86_64 ARCH: x86_64
tags: tags:
...@@ -38,8 +63,8 @@ run-x86_64: ...@@ -38,8 +63,8 @@ run-x86_64:
- selinux - selinux
run-aarch64: test-aarch64:
extends: .run extends: .test
variables: variables:
ARCH: aarch64 ARCH: aarch64
tags: tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment