Deply on commit
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
db9de5342f
|
@ -0,0 +1,16 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: deploy
|
||||
|
||||
steps:
|
||||
- name: Push to Portainer
|
||||
image: alpine
|
||||
commands:
|
||||
- apk update
|
||||
- apk add envsubst curl
|
||||
- envsubst < portainer_deploy.template.json > portainer_deploy.json
|
||||
- curl -d "portainer_deploy.json" -H "X-Api-Key=ptr_RwxH2Cd+htdD2FoFiG46erT9beyvj9VoF3BrQPtDH3Q=" -X POST https://dvportainer.privatedns.org/stacks/create/standalone/repository
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
|
@ -0,0 +1,20 @@
|
|||
version: '3.4'
|
||||
|
||||
services:
|
||||
http-echo:
|
||||
container_name: http-echo
|
||||
image: mendhak/http-https-echo:latest
|
||||
expose:
|
||||
- 8080
|
||||
environment:
|
||||
- VIRTUAL_PORT=8080
|
||||
- VIRTUAL_HOST=${HOST}
|
||||
- VIRTUAL_PATH=/${ECHO_PATH}/
|
||||
- VIRTUAL_DEST=/
|
||||
networks:
|
||||
- cicd
|
||||
|
||||
networks:
|
||||
cicd:
|
||||
driver: bridge
|
||||
external: true
|
|
@ -0,0 +1,11 @@
|
|||
version: '3.4'
|
||||
|
||||
services:
|
||||
http-echo:
|
||||
networks:
|
||||
- cicd
|
||||
|
||||
networks:
|
||||
cicd:
|
||||
driver: bridge
|
||||
external: true
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"additionalFiles": [],
|
||||
"autoUpdate": {
|
||||
"forcePullImage": false,
|
||||
"forceUpdate": false,
|
||||
"interval": "1m30s",
|
||||
"jobID": "15",
|
||||
"webhook": "05de31a2-79fa-4644-9c12-faa67e5c49f0"
|
||||
},
|
||||
"composeFile": "docker-compose.yml",
|
||||
"env": [
|
||||
{
|
||||
"HOST": "dvdemo.privatedns.org",
|
||||
"ECHO_PATH": "deployed_echo"
|
||||
}
|
||||
],
|
||||
"fromAppTemplate": false,
|
||||
"name": "DeployTest_test1",
|
||||
"repositoryAuthentication": true,
|
||||
"repositoryUsername": "cicd",
|
||||
"repositoryPassword": "gJ6@$7ZjWGyV4%i",
|
||||
"repositoryReferenceName": "/refs/heads/main",
|
||||
"repositoryURL": "https://dvgit.privatedns.org/lars/DeployTests",
|
||||
"tlsskipVerify": false
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"additionalFiles": [],
|
||||
"autoUpdate": {
|
||||
"forcePullImage": false,
|
||||
"forceUpdate": false,
|
||||
"interval": "1m30s",
|
||||
"jobID": "15",
|
||||
"webhook": "05de31a2-79fa-4644-9c12-faa67e5c49f0"
|
||||
},
|
||||
"composeFile": "docker-compose.yml",
|
||||
"env": [
|
||||
{
|
||||
"HOST": "dvdemo.privatedns.org",
|
||||
"ECHO_PATH": "deployed_echo"
|
||||
}
|
||||
],
|
||||
"fromAppTemplate": false,
|
||||
"name": "DeployTest_${DRONE_COMMIT}",
|
||||
"repositoryAuthentication": true,
|
||||
"repositoryUsername": "cicd",
|
||||
"repositoryPassword": "gJ6@$7ZjWGyV4%i",
|
||||
"repositoryReferenceName": "${DRONE_COMMIT_REF}",
|
||||
"repositoryURL": "${DRONE_REPO_LINK}",
|
||||
"tlsskipVerify": false
|
||||
}
|
Loading…
Reference in New Issue