From 5933fcc8532046657692f80f5ea8508a4b7d1045 Mon Sep 17 00:00:00 2001 From: Pieter Donker <donker@astron.nl> Date: Wed, 22 Mar 2023 13:46:35 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e57b466069..59e531e613 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 stages: - - image - linting - simulation - synthesis - 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: + tags: + hdl stage: linting - extends: docker-image allow_failure: true before_script: - DEBIAN_FRONTEND=noninteractive apt-get update -- GitLab