rm gitlab content
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
node_modules
|
node_modules
|
||||||
.hugo_build.lock
|
.hugo_build.lock
|
||||||
.gitignore
|
.gitignore
|
||||||
.gitlab-ci.yml
|
.gitea
|
||||||
.gitmodules
|
.gitmodules
|
||||||
docker-compose-dev.yaml
|
docker-compose-dev.yaml
|
||||||
Dockerfile
|
Dockerfile
|
||||||
|
|||||||
@@ -1,60 +0,0 @@
|
|||||||
stages:
|
|
||||||
- build
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
variables:
|
|
||||||
DOCKER_TLS_CERTDIR: "/certs"
|
|
||||||
|
|
||||||
.build_template: &build_template
|
|
||||||
image: docker:24.0.5
|
|
||||||
stage: build
|
|
||||||
services:
|
|
||||||
- docker:24.0.5-dind
|
|
||||||
script:
|
|
||||||
- echo "$CI_REGISTRY_PASSWORD" | docker login registry.remo-liebmann.de -u reguser --password-stdin
|
|
||||||
- docker build --build-arg HUGO_ENV=$HUGO_ENV -t registry.remo-liebmann.de/hallofbrawl-homepage:$IMAGE_TAG .
|
|
||||||
- docker push registry.remo-liebmann.de/hallofbrawl-homepage:$IMAGE_TAG
|
|
||||||
|
|
||||||
.deploy_template: &deploy_template
|
|
||||||
image: alpine/curl
|
|
||||||
stage: deploy
|
|
||||||
script:
|
|
||||||
- curl --insecure -X POST $PORTAINER_WEBHOOK
|
|
||||||
|
|
||||||
# -------------------------
|
|
||||||
# PRODUCTION (main)
|
|
||||||
# -------------------------
|
|
||||||
|
|
||||||
build_prod:
|
|
||||||
<<: *build_template
|
|
||||||
only:
|
|
||||||
- main
|
|
||||||
variables:
|
|
||||||
IMAGE_TAG: prod
|
|
||||||
HUGO_ENV: production
|
|
||||||
|
|
||||||
deploy_prod:
|
|
||||||
<<: *deploy_template
|
|
||||||
only:
|
|
||||||
- main
|
|
||||||
variables:
|
|
||||||
PORTAINER_WEBHOOK: "https://192.168.12.21:9443/api/webhooks/1002a576-f003-4c5f-9079-41ed019f7bdc"
|
|
||||||
|
|
||||||
# -------------------------
|
|
||||||
# DEVELOPMENT (development)
|
|
||||||
# -------------------------
|
|
||||||
|
|
||||||
build_dev:
|
|
||||||
<<: *build_template
|
|
||||||
only:
|
|
||||||
- development
|
|
||||||
variables:
|
|
||||||
IMAGE_TAG: dev
|
|
||||||
HUGO_ENV: development
|
|
||||||
|
|
||||||
deploy_dev:
|
|
||||||
<<: *deploy_template
|
|
||||||
only:
|
|
||||||
- development
|
|
||||||
variables:
|
|
||||||
PORTAINER_WEBHOOK: "https://192.168.12.21:9443/api/webhooks/7a477f78-ced3-44d3-8a3d-5c05e8c565de"
|
|
||||||
Reference in New Issue
Block a user