Update the configuration with curl and token

This commit is contained in:
retropikzel 2024-09-29 07:57:32 +03:00
parent 445adf9ede
commit 59be8e6546
3 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,7 @@ services:
dockerfile: jenkins.Dockerfile
environment:
- CASC_JENKINS_CONFIG=/jenkins.yml
- CASC_RELOAD_TOKEN=${CASC_RELOAD_TOKEN}
volumes:
- ./jenkins.yml:/jenkins.yml
- ./id_rsa:/secrets/id_rsa

3
start.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker-compose up --build

View File

@ -1,5 +1,4 @@
#!/bin/bash
git pull
docker-compose up --build
curl -X POST "https://jenkins.staging.scheme.org/reload-configuration-as-code/?casc-reload-token=${CASC_RELOAD_TOKEN}"