This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
wangwei-cn-object-scheduler/.gitlab-ci.yml
2024-01-05 15:15:36 +08:00

39 lines
679 B
YAML

stages:
- build
- clean
- deploy
build:
stage: build
script:
- echo 'exec mvn clean package'
- echo 'tag:' $CI_COMMIT_TAG
- mvn clean package -Dmaven.test.skip=true
only:
- tags
tags:
- galaxy
clean:
stage: clean
script:
- echo 'build job fail, exec mvn clean'
- echo 'tag:' $CI_COMMIT_TAG
- mvn clean
when: on_failure
only:
- tags
tags:
- galaxy
deploy:
stage: deploy
script:
- echo 'exec mvn package & docker build'
- echo 'tag:' $CI_COMMIT_TAG
- mvn clean package -Dmaven.test.skip=true docker:build -DdockerImageTags=$CI_COMMIT_TAG
when: on_success
only:
- tags
tags:
- galaxy