mirror of
https://github.com/adferrand/docker-backuppc.git
synced 2023-11-05 04:40:26 +01:00
Add test step. Limit deploy to deploy branches
This commit is contained in:
parent
ac8a7b68ea
commit
c9d5efb199
@ -16,6 +16,17 @@ jobs:
|
|||||||
root: workspace
|
root: workspace
|
||||||
paths:
|
paths:
|
||||||
- docker-backuppc.tar
|
- docker-backuppc.tar
|
||||||
|
test:
|
||||||
|
machine: true
|
||||||
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
at: /tmp/workspace
|
||||||
|
- run:
|
||||||
|
command:
|
||||||
|
docker load < /tmp/workspace/docker-backuppc.tar
|
||||||
|
- run:
|
||||||
|
command:
|
||||||
|
docker run --rm adferrand/backuppc echo 'Hello World!'
|
||||||
deploy:
|
deploy:
|
||||||
machine: true
|
machine: true
|
||||||
steps:
|
steps:
|
||||||
@ -40,9 +51,17 @@ workflows:
|
|||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
only: ^[0-9.]+
|
only: ^[0-9.]+
|
||||||
- deploy:
|
- test:
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
filters:
|
filters:
|
||||||
|
tags:
|
||||||
|
only: ^[0-9.]+
|
||||||
|
- deploy:
|
||||||
|
requires:
|
||||||
|
- test
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only: ^(master|4|3)$
|
||||||
tags:
|
tags:
|
||||||
only: ^[0-9.]+
|
only: ^[0-9.]+
|
||||||
|
Loading…
Reference in New Issue
Block a user