Compare commits

...

1 Commits

Author SHA1 Message Date
527e8f443c correct docker repo name 2020-12-30 05:46:08 -08:00

View File

@ -30,7 +30,7 @@ steps:
# collect info from current image
- echo $REGISTRY_PWD | docker login -u drone --password-stdin registry.jfmonty2.com
- docker pull registry.jfmonty2.com/drone:latest
- IMAGE_COMMIT_HASH=$(docker image inspect -f '{{ .Config.Labels.drone_commit_hash }}' registry.jfmonty2.com/drone:latest)
- IMAGE_COMMIT_HASH=$(docker image inspect -f '{{ .Config.Labels.drone_commit_hash }}' registry.jfmonty2.com/drone-server:latest)
# compare
- |
if [[ $COMMIT_HASH != $IMAGE_COMMIT_HASH ]]; then