Commit 71e379f6 authored by Markus Mirz's avatar Markus Mirz
Browse files

fix gitlab ci


Signed-off-by: Markus Mirz's avatarMarkus Mirz <mmirz@eonerc.rwth-aachen.de>
parent cea13dcb
variables: variables:
GIT_STRATEGY: fetch
GIT_SUBMODULE_STRATEGY: recursive
RSYNC_OPTS: --recursive --ignore-missing-args --chown ${DEPLOY_USER}:${DEPLOY_USER} RSYNC_OPTS: --recursive --ignore-missing-args --chown ${DEPLOY_USER}:${DEPLOY_USER}
DOCKER_TAG: ${CI_COMMIT_REF_NAME} DOCKER_TAG: ${CI_COMMIT_REF_NAME}
DOCKER_IMAGE: rwthacs/dpsim DOCKER_IMAGE: rwthacs/dpsim
DOCKER_IMAGE_DEV: rwthacs/dpsim-dev DOCKER_IMAGE_DEV: rwthacs/dpsim-dev
before_script:
- git config --local core.longpaths true
- git submodule sync --recursive
- git submodule update --init --recursive
stages: stages:
- prepare - prepare
...@@ -19,6 +17,7 @@ stages: ...@@ -19,6 +17,7 @@ stages:
.docker-fedora-template: &docker-fedora-template .docker-fedora-template: &docker-fedora-template
stage: prepare stage: prepare
image: docker:20.10
needs: [] needs: []
script: script:
- docker build - docker build
...@@ -48,8 +47,7 @@ docker:centos: ...@@ -48,8 +47,7 @@ docker:centos:
--tag ${DOCKER_IMAGE_DEV}-centos:${DOCKER_TAG} --tag ${DOCKER_IMAGE_DEV}-centos:${DOCKER_TAG}
--tag ${DOCKER_IMAGE_DEV}-centos:latest . --tag ${DOCKER_IMAGE_DEV}-centos:latest .
tags: tags:
- shell - docker
- linux
build:linux: build:linux:
stage: build stage: build
...@@ -204,8 +202,7 @@ build:docker: ...@@ -204,8 +202,7 @@ build:docker:
--tag ${DOCKER_IMAGE}:${DOCKER_TAG} --tag ${DOCKER_IMAGE}:${DOCKER_TAG}
--tag ${DOCKER_IMAGE}:latest . --tag ${DOCKER_IMAGE}:latest .
tags: tags:
- shell - docker
- linux
only: only:
- tags - tags
...@@ -623,8 +620,7 @@ pages: ...@@ -623,8 +620,7 @@ pages:
only: only:
- deploy - deploy
tags: tags:
- shell - docker
- linux
deploy:docker: deploy:docker:
stage: deploy stage: deploy
...@@ -636,22 +632,6 @@ deploy:docker: ...@@ -636,22 +632,6 @@ deploy:docker:
dependencies: dependencies:
- build:docker - build:docker
tags: tags:
- shell - docker
- linux
only:
- tags
deploy:packages:
stage: deploy
script:
- rsync ${RSYNC_OPTS} build/*.rpm ${DEPLOY_USER}@${DEPLOY_HOST}:/var/www/packages/fedora/29/x86_64
- rsync ${RSYNC_OPTS} build/*.tar.gz ${DEPLOY_USER}@${DEPLOY_HOST}:/var/www/dpsim/src
- ssh ${DEPLOY_USER}@${DEPLOY_HOST} createrepo /var/www/packages/fedora/29
dependencies:
- generate:packages
only: only:
- tags - tags
tags: \ No newline at end of file
- fein-deploy
- shell
- linux
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