Compare commits
1 Commits
2eddca0818
...
527e8f443c
Author | SHA1 | Date | |
---|---|---|---|
527e8f443c |
@ -29,8 +29,8 @@ steps:
|
|||||||
- COMMIT_HASH=$(git log -n 1 --pretty=%H)
|
- COMMIT_HASH=$(git log -n 1 --pretty=%H)
|
||||||
# collect info from current image
|
# collect info from current image
|
||||||
- echo $REGISTRY_PWD | docker login -u drone --password-stdin registry.jfmonty2.com
|
- echo $REGISTRY_PWD | docker login -u drone --password-stdin registry.jfmonty2.com
|
||||||
- docker pull registry.jfmonty2.com/drone-server:latest
|
- 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
|
# compare
|
||||||
- |
|
- |
|
||||||
if [[ $COMMIT_HASH != $IMAGE_COMMIT_HASH ]]; then
|
if [[ $COMMIT_HASH != $IMAGE_COMMIT_HASH ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user