This commit is contained in:
@@ -14,7 +14,7 @@ steps:
|
||||
- PREV_IMG=$(docker inspect vistanarvas/simple-laravel:dev-alpine --format='{{.Created}}' | cut -d '.' -f 1)
|
||||
- BASE_DATE=$(date -D "%Y-%m-%dT%H:%M:%S" -d "$BASE_IMG" +%s)
|
||||
- PREV_DATE=$(date -D "%Y-%m-%dT%H:%M:%S" -d "$PREV_IMG" +%s)
|
||||
- if [ "$PREV_DATE" -gt "$BASE_DATE" ]; then touch SKIP_BUILD; fi
|
||||
- if [ "$PREV_DATE" -gt "$BASE_DATE" ]; then exit 1; fi
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
depends_on:
|
||||
- build_alpine
|
||||
|
||||
steps:
|
||||
test:
|
||||
image: alpine
|
||||
commands:
|
||||
- echo "Hello"
|
||||
test2:
|
||||
image: alpine
|
||||
commands:
|
||||
- echo "World"
|
||||
when:
|
||||
path:
|
||||
include:
|
||||
- SKIP_BUILD
|
||||
Reference in New Issue
Block a user