Skip to content
Snippets Groups Projects
Commit 5933fcc8 authored by Pieter Donker's avatar Pieter Donker
Browse files

Update .gitlab-ci.yml file

parent 9796e4a1
No related branches found
No related tags found
No related merge requests found
Pipeline #46047 failed
...@@ -26,42 +26,15 @@ ...@@ -26,42 +26,15 @@
# . See https://support.astron.nl/confluence/display/L2M/L3+SDP+Decision%3A+Gitlab+pipeline+automation+to+test+SDPFW+with+OPC+UA # . See https://support.astron.nl/confluence/display/L2M/L3+SDP+Decision%3A+Gitlab+pipeline+automation+to+test+SDPFW+with+OPC+UA
stages: stages:
- image
- linting - linting
- simulation - simulation
- synthesis - synthesis
- hardware - hardware
# build docker image
docker-image:
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}"
lint-vhdl-libraries: lint-vhdl-libraries:
tags:
hdl
stage: linting stage: linting
extends: docker-image
allow_failure: true allow_failure: true
before_script: before_script:
- DEBIAN_FRONTEND=noninteractive apt-get update - DEBIAN_FRONTEND=noninteractive apt-get update
......
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