Skip to content
Snippets Groups Projects
Commit 0b44191a authored by Corné Lukken's avatar Corné Lukken
Browse files

Combine previous and current .gitlab-ci.yml

parent d2c8610c
No related branches found
No related tags found
1 merge request!36Resolve L2SDP-534
Pipeline #23501 passed
stages:
- run-opc-ua-test
- image
- run-opc-ua-test
docker-build:
stage: image
image: docker:latest
tags:
- privileged
only:
refs:
- master
services:
- docker:dind
variables:
DOCKER_TLS_CERTDIR: "/certs"
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- |
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
tag=""
echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'latest'"
else
tag=":$CI_COMMIT_REF_SLUG"
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
fi
- docker build --pull -t "$CI_REGISTRY_IMAGE${tag}" .
- docker push "$CI_REGISTRY_IMAGE${tag}"
run-opc-ua-test:
tags:
- sdptr
......@@ -10,6 +34,3 @@ run-opc-ua-test:
- echo "Running OPC UA tests"
- sleep 60
- echo "Done"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment