Skip to content
Snippets Groups Projects
Commit bb1715f6 authored by Tóth Miklós Tibor's avatar Tóth Miklós Tibor :shrug:
Browse files

Add frontend to CI/CD

parent 98173bd5
Branches
No related tags found
No related merge requests found
Pipeline #20065 failed
...@@ -141,3 +141,39 @@ deploy backend: ...@@ -141,3 +141,39 @@ deploy backend:
- .gitlab-ci.yml - .gitlab-ci.yml
refs: refs:
- main - main
build web frontend:
stage: build
image: gradle:7.1
script:
- cd mosogepsch
- ./gradlew jsBrowserProductionWebpack
artifacts:
paths:
- mosogepsch/build/distributions
only:
changes:
- mosogepsch/**/*
- .gitlab-ci.yml
deploy web frontend:
stage: deploy
image: kroniak/ssh-client
before_script:
- eval $(ssh-agent -s)
- echo "$SSH" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- 'echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
needs:
- build web frontend
script:
- scp mosogepsch/build/distributions/* $MOSOGEPSCH_HOST:/opt/mosogepsch/frontend
only:
changes:
- mosogepsch/**/*
- .gitlab-ci.yml
refs:
- main
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment