diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2306e58..109b7bd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ stages: - build + - deploy variables: DOCKER_TLS_CERTDIR: "/certs" @@ -15,4 +16,11 @@ build: - echo "$CI_REGISTRY_PASSWORD" | docker login registry.remo-liebmann.de:5000 -u reguser --password-stdin - docker build -t registry.remo-liebmann.de:5000/dc-series-homepage:latest . - docker push registry.remo-liebmann.de:5000/dc-series-homepage:latest - - curl -X POST https://192.168.12.11:9443/api/webhooks/c9f4f2fa-d5fe-4920-865e-cc91b08d05f8 + +deploy: + image: alpine/curl + stage: deploy + only: + - main + script: + - curl -X POST https://192.168.12.11:9443/api/webhooks/c9f4f2fa-d5fe-4920-865e-cc91b08d05f8 \ No newline at end of file