Skip to content
Snippets Groups Projects
Verified Commit 8557857b authored by Martin Weise's avatar Martin Weise
Browse files

Renamed targets

parent 4895d6cb
No related branches found
No related tags found
No related merge requests found
Pipeline #5899 failed
......@@ -3,38 +3,30 @@ cache:
- ./site
stages:
- configure
- build
- deploy
configure-certs:
stage: configure
script:
- make configure
build-mkdocs:
build-docs:
stage: build
needs:
- configure-certs
script:
- make build
- make build-docs
deploy-docs:
stage: deploy
needs:
- build-mkdocs
- build-docs
only:
refs:
- master
script:
- make deploy
- make deploy-docs
deploy-dockerhub-docs:
stage: deploy
needs:
- build-mkdocs
- build-docs
only:
refs:
- master
script:
- DOCKER_USERNAME="${DOCKER_USERNAME}" DOCKER_PASSWORD="${DOCKER_PASSWORD}" make docs
- DOCKER_USERNAME="${DOCKER_USERNAME}" DOCKER_PASSWORD="${DOCKER_PASSWORD}" make deploy deploy-dockerhub-docs
......@@ -2,31 +2,26 @@
TAG ?= latest
all: build
all: build-docs
clean:
rm -rf ./site
release: release-dockerhub
release-dockerhub:
deploy-dockerhub-docs:
sudo pip3 install -r ./requirements.txt
python3 ./dockerhub/release.py
verify:
sudo nginx -t
build:
build-docs:
mkdocs build
cd ./swagger && bash ./generate.sh
build-swagger:
cd ./swagger && UPDATE=1 ./generate.sh
configure:
sudo certbot certonly --standalone --preferred-challenges http -d dbrepo-docs.ossdip.at --agree-tos --keep-until-expiring
deploy: build
deploy-docs: build-docs
tar czfv ./site.tar.gz ./site
scp ./site.tar.gz ec-thoas2:site.tar.gz
ssh ec-thoas2 "rm -rf /system/user/ifs/infrastructures/public_html/dbrepo/*; tar xzfv ./site.tar.gz; rm -f ./site.tar.gz; cp -r ./site/* /system/user/ifs/infrastructures/public_html/dbrepo; rm -rf ./site"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment