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
|
||||
paths:
|
||||
- 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:
|
||||
machine: true
|
||||
steps:
|
||||
@ -40,9 +51,17 @@ workflows:
|
||||
filters:
|
||||
tags:
|
||||
only: ^[0-9.]+
|
||||
- deploy:
|
||||
- test:
|
||||
requires:
|
||||
- build
|
||||
filters:
|
||||
tags:
|
||||
only: ^[0-9.]+
|
||||
- deploy:
|
||||
requires:
|
||||
- test
|
||||
filters:
|
||||
branches:
|
||||
only: ^(master|4|3)$
|
||||
tags:
|
||||
only: ^[0-9.]+
|
||||
|
Loading…
Reference in New Issue
Block a user