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

Update .gitlab-ci.yml

parent 87f2aaf7
No related branches found
No related tags found
No related merge requests found
Pipeline #859 failed
variables: variables:
GIT_STRATEGY: clone
ARTIFACT_DIR: build/repo/ecore2java ARTIFACT_DIR: build/repo/ecore2java
build: build:
stage: build stage: build
image: nimmis/alpine-java:openjdk-8-jdk image: nimmis/alpine-java:openjdk-8-jdk
variables: variables:
GIT_STRATEGY: clone
GRADLE_OPTS: "-Dorg.gradle.daemon=false" GRADLE_OPTS: "-Dorg.gradle.daemon=false"
before_script: before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle - export GRADLE_USER_HOME=`pwd`/.gradle
script: script:
- ./gradlew publish - ./gradlew publish
after_script:
- ls -lR build/repo
artifacts: artifacts:
paths: paths:
- $ARTIFACT_DIR - $ARTIFACT_DIR
...@@ -21,30 +19,27 @@ build: ...@@ -21,30 +19,27 @@ build:
paths: paths:
- .gradle/wrapper - .gradle/wrapper
- .gradle/caches - .gradle/caches
only:
- tags
tags: tags:
- dockered - dockered
publish: publish:
stage: deploy stage: deploy
image: bravissimolabs/alpine-git image: bravissimolabs/alpine-git
variables:
GIT_STRATEGY: clone
before_script: before_script:
- git config user.name "$GITLAB_USER_NAME" - git config user.name "$GITLAB_USER_NAME"
- git config user.email "$GITLAB_USER_EMAIL" - git config user.email "$GITLAB_USER_EMAIL"
- export VERSION=${CI_COMMIT_TAG:-`git describe --tags --always`} - export VERSION=${CI_COMMIT_TAG:-`git describe --tags --always`}
- echo $VERSION - echo $VERSION
script: script:
- git status
- git checkout ivy-repo || git checkout --orphan ivy-repo - git checkout ivy-repo || git checkout --orphan ivy-repo
- git reset - git reset
- git status
- cp -r $ARTIFACT_DIR . - cp -r $ARTIFACT_DIR .
- git status
- git add $(git ls-files -o ecore2java) - git add $(git ls-files -o ecore2java)
- git commit -m "[skip ci] Automatic release of version $VERSION" - git commit -m "[skip ci] Automatic release of version $VERSION"
- git show - git push --set-upstream origin ivy-repo
# - git push --set-upstream origin ivy-repo only:
# - git push ivy-repo - tags
tags: tags:
- dockered - dockered
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment