Skip to content
Snippets Groups Projects
Commit 69e4d864 authored by Andreas Fehn's avatar Andreas Fehn
Browse files

Update .gitlab-ci.yml

parent d0d3c506
No related branches found
No related tags found
No related merge requests found
Pipeline #852 failed
image: kemixkoo/debian-maven
#image: kemixkoo/debian-maven
#image: duyviec/mvn-jdk8-git
variables:
ARTIFACT_DIR: build/repo/ecore2java
build:
stage: build
image: nimmis/alpine-java:openjdk-8-jdk
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
before_script:
......@@ -26,11 +28,8 @@ build:
publish:
stage: deploy
image: alpine/git
before_script:
# - mkdir -p ~/.ssh
# - echo "$SSH_SECRET_DEPLOY_KEY" | tr -d '\r' > ~/.ssh/id_rsa
# - chmod 600 ~/.ssh/id_rsa
# - ssh-keyscan -H "git-st.inf.tu-dresden.de" >> ~/.ssh/known_hosts
- git config user.name "$GITLAB_USER_NAME"
- git config user.email "$GITLAB_USER_EMAIL"
- export VERSION=${CI_COMMIT_TAG:-`git describe --tags --always`}
......@@ -41,16 +40,7 @@ publish:
- cp -r $ARTIFACT_DIR .
- git add $(git ls-files -o ecore2java)
- git commit -m "[skip ci] Automatic release of version $VERSION"
- git push
# - git clone git@git-st.inf.tu-dresden.de:ecore2java/gradle-plugin-ivy-repository.git repo
# - cp -r $ARTIFACT_DIR repo
# - cd repo
# - git config user.name "$GITLAB_USER_NAME"
# - git config user.email "$GITLAB_USER_EMAIL"
# - git add .
# - git reset ecore2java
# - git add $(git ls-files -o ecore2java)
# - git commit -m "Automatic publishing of version $VERSION" || true
# - git push
# - git push --set-upstream origin ivy-repo
- git push ivy-repo
tags:
- dockered
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment