This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addons: | |
apt: | |
packages: | |
- sshpass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- frontend | |
- backend | |
- deploy | |
- patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cache: | |
directories: | |
- "$HOME/.m2/repository/" | |
- "$HOME/src/main/resources/static/" | |
- "$HOME/dist/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cache: | |
key: "$CI_COMMIT_REF_NAME" | |
paths: | |
- .m2/repository/ | |
- src/main/resources/static/ | |
- dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Frontend: | |
extends: .Job_Only | |
image: node:10 | |
stage: frontend | |
before_script: | |
- npm install | |
script: | |
- npm test | |
after_script: | |
- npm run dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
Patch: | |
image: maven:3.3.9 | |
only: | |
changes: | |
- "pom.xml" | |
refs: | |
- merge_requests | |
stage: patch | |
before_script: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
Deploy: | |
extends: .Job_Only | |
image: maven:3.3.9 | |
stage: deploy | |
before_script: | |
- POM_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) | |
- apt-get update -qq && apt-get install -y -qq sshpass | |
script: | |
- ls -all ./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
BE_Build: | |
extends: .Job_Only | |
image: maven:3.3.9 | |
stage: bebuild | |
script: | |
- mvn install -DskipTests=true $MAVEN_OPTS $MAVEN_CLI_OPTS | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
BE_Test: | |
extends: .Job_Only | |
image: maven:3.3.9 | |
stage: betest | |
script: | |
- mvn test $MAVEN_OPTS | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
FE_Build: | |
extends: .Job_Only | |
image: node:10 | |
stage: febuild | |
before_script: | |
- npm install | |
script: | |
- npm run dist | |
- ls -all ./src/main/resources/static |