@ -35,7 +35,7 @@ steps:
tar: ops-api-${DRONE_BUILD_NUMBER}.tar
commands:
- suffix=$(echo "${IMAGE}" | awk -F '/' '{split($NF, a, ":"); print a[2]}')
- echo suffix
- echo ${suffix}
- docker images | grep "ops-api" | grep ${suffix} | awk '{print $3}' | xargs docker rmi
when:
target: [ "hi","prod" ]