Build and clean remote builders correctly
Check that the builder and context match what we expect, and if not remove and re-create them.
This commit is contained in:
42
test/fixtures/deploy_with_hybrid_builder.yml
vendored
Normal file
42
test/fixtures/deploy_with_hybrid_builder.yml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
service: app
|
||||
image: dhh/app
|
||||
servers:
|
||||
web:
|
||||
- "1.1.1.1"
|
||||
- "1.1.1.2"
|
||||
workers:
|
||||
- "1.1.1.3"
|
||||
- "1.1.1.4"
|
||||
registry:
|
||||
username: user
|
||||
password: pw
|
||||
|
||||
accessories:
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
host: 1.1.1.3
|
||||
port: 3306
|
||||
env:
|
||||
clear:
|
||||
MYSQL_ROOT_HOST: '%'
|
||||
secret:
|
||||
- MYSQL_ROOT_PASSWORD
|
||||
files:
|
||||
- test/fixtures/files/my.cnf:/etc/mysql/my.cnf
|
||||
directories:
|
||||
- data:/var/lib/mysql
|
||||
redis:
|
||||
image: redis:latest
|
||||
roles:
|
||||
- web
|
||||
port: 6379
|
||||
directories:
|
||||
- data:/data
|
||||
|
||||
readiness_delay: 0
|
||||
|
||||
builder:
|
||||
arch:
|
||||
- arm64
|
||||
- amd64
|
||||
remote: ssh://app@1.1.1.5
|
||||
2
test/fixtures/deploy_with_remote_builder.yml
vendored
2
test/fixtures/deploy_with_remote_builder.yml
vendored
@@ -32,8 +32,6 @@ accessories:
|
||||
port: 6379
|
||||
directories:
|
||||
- data:/data
|
||||
builder:
|
||||
arch: amd64
|
||||
|
||||
readiness_delay: 0
|
||||
|
||||
|
||||
@@ -32,8 +32,6 @@ accessories:
|
||||
port: 6379
|
||||
directories:
|
||||
- data:/data
|
||||
builder:
|
||||
arch: amd64
|
||||
|
||||
readiness_delay: 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user