Browse Source

prod

master
zhipeng.hu 1 year ago
parent
commit
974b8d9860
  1. 2
      .drone.yml

2
.drone.yml

@ -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" ]

Loading…
Cancel
Save