This commit is contained in:
2022-03-14 14:42:46 +13:00
parent 07af261205
commit 92c0aec762

View File

@@ -9,32 +9,32 @@ services:
name: dockersock name: dockersock
path: /var/run path: /var/run
steps: steps:
- - commands: - commands:
- sleep 10 - sleep 10
- mkdir ${DRONE_REPO_NAME} - mkdir ${DRONE_REPO_NAME}
- rsync -a . ${DRONE_REPO_NAME} --exclude ${DRONE_REPO_NAME} - rsync -a . ${DRONE_REPO_NAME} --exclude ${DRONE_REPO_NAME}
- cd ${DRONE_REPO_NAME} - cd ${DRONE_REPO_NAME}
- molecule test - molecule test
environment: environment:
MOLECULE_DISTRO: centos7 MOLECULE_DISTRO: centos7
image: guisea/ansible-molecule:latest image: guisea/ansible-molecule:latest
name: Test on centos7 name: Test on centos7
volumes: volumes:
name: dockersock name: dockersock
path: /var/run path: /var/run
- image: drillster/drone-email - image: drillster/drone-email
name: notify by email name: notify by email
settings: settings:
from: drone@guise.net.nz from: drone@guise.net.nz
host: mail.guise.net.nz host: mail.guise.net.nz
password: password:
from_secret: EMAIL_PASS from_secret: EMAIL_PASS
username: username:
from_secret: EMAIL_USER from_secret: EMAIL_USER
when: when:
status: status:
- changed - changed
- failure - failure
type: docker type: docker
volumes: volumes:
name: dockersock name: dockersock
@@ -50,32 +50,32 @@ services:
name: dockersock name: dockersock
path: /var/run path: /var/run
steps: steps:
- - commands: - commands:
- sleep 10 - sleep 10
- mkdir ${DRONE_REPO_NAME} - mkdir ${DRONE_REPO_NAME}
- rsync -a . ${DRONE_REPO_NAME} --exclude ${DRONE_REPO_NAME} - rsync -a . ${DRONE_REPO_NAME} --exclude ${DRONE_REPO_NAME}
- cd ${DRONE_REPO_NAME} - cd ${DRONE_REPO_NAME}
- molecule test - molecule test
environment: environment:
MOLECULE_DISTRO: centos8 MOLECULE_DISTRO: centos8
image: guisea/ansible-molecule:latest image: guisea/ansible-molecule:latest
name: Test on centos8 name: Test on centos8
volumes: volumes:
name: dockersock name: dockersock
path: /var/run path: /var/run
- image: drillster/drone-email - image: drillster/drone-email
name: notify by email name: notify by email
settings: settings:
from: drone@guise.net.nz from: drone@guise.net.nz
host: mail.guise.net.nz host: mail.guise.net.nz
password: password:
from_secret: EMAIL_PASS from_secret: EMAIL_PASS
username: username:
from_secret: EMAIL_USER from_secret: EMAIL_USER
when: when:
status: status:
- changed - changed
- failure - failure
type: docker type: docker
volumes: volumes:
name: dockersock name: dockersock
@@ -91,32 +91,32 @@ services:
name: dockersock name: dockersock
path: /var/run path: /var/run
steps: steps:
- - commands: - commands:
- sleep 10 - sleep 10
- mkdir ${DRONE_REPO_NAME} - mkdir ${DRONE_REPO_NAME}
- rsync -a . ${DRONE_REPO_NAME} --exclude ${DRONE_REPO_NAME} - rsync -a . ${DRONE_REPO_NAME} --exclude ${DRONE_REPO_NAME}
- cd ${DRONE_REPO_NAME} - cd ${DRONE_REPO_NAME}
- molecule test - molecule test
environment: environment:
MOLECULE_DISTRO: debian10 MOLECULE_DISTRO: debian10
image: guisea/ansible-molecule:latest image: guisea/ansible-molecule:latest
name: Test on debian10 name: Test on debian10
volumes: volumes:
name: dockersock name: dockersock
path: /var/run path: /var/run
- image: drillster/drone-email - image: drillster/drone-email
name: notify by email name: notify by email
settings: settings:
from: drone@guise.net.nz from: drone@guise.net.nz
host: mail.guise.net.nz host: mail.guise.net.nz
password: password:
from_secret: EMAIL_PASS from_secret: EMAIL_PASS
username: username:
from_secret: EMAIL_USER from_secret: EMAIL_USER
when: when:
status: status:
- changed - changed
- failure - failure
type: docker type: docker
volumes: volumes:
name: dockersock name: dockersock
@@ -132,32 +132,32 @@ services:
name: dockersock name: dockersock
path: /var/run path: /var/run
steps: steps:
- - commands: - commands:
- sleep 10 - sleep 10
- mkdir ${DRONE_REPO_NAME} - mkdir ${DRONE_REPO_NAME}
- rsync -a . ${DRONE_REPO_NAME} --exclude ${DRONE_REPO_NAME} - rsync -a . ${DRONE_REPO_NAME} --exclude ${DRONE_REPO_NAME}
- cd ${DRONE_REPO_NAME} - cd ${DRONE_REPO_NAME}
- molecule test - molecule test
environment: environment:
MOLECULE_DISTRO: debian11 MOLECULE_DISTRO: debian11
image: guisea/ansible-molecule:latest image: guisea/ansible-molecule:latest
name: Test on debian11 name: Test on debian11
volumes: volumes:
name: dockersock name: dockersock
path: /var/run path: /var/run
- image: drillster/drone-email - image: drillster/drone-email
name: notify by email name: notify by email
settings: settings:
from: drone@guise.net.nz from: drone@guise.net.nz
host: mail.guise.net.nz host: mail.guise.net.nz
password: password:
from_secret: EMAIL_PASS from_secret: EMAIL_PASS
username: username:
from_secret: EMAIL_USER from_secret: EMAIL_USER
when: when:
status: status:
- changed - changed
- failure - failure
type: docker type: docker
volumes: volumes:
name: dockersock name: dockersock