Skip to content

Commit

Permalink
feat: use hokusai registry images --tag-exists flag
Browse files Browse the repository at this point in the history
  • Loading branch information
artsyjian committed May 31, 2023
1 parent 78a3c9b commit 700ffd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/hokusai/hokusai.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Orb Version 0.16.0
# Orb Version 0.17.0


version: 2.1
Expand Down Expand Up @@ -73,7 +73,7 @@ commands:
command: |
set +euo pipefail
if hokusai registry images --limit 1000 | grep -E "$CIRCLE_SHA1([, ]|$)" >/dev/null
if hokusai registry images --tag-exists "$CIRCLE_SHA1" >/dev/null
then
echo "Skipping push as the tag $CIRCLE_SHA1 already exists in the Docker registry"
else
Expand Down
8 changes: 4 additions & 4 deletions src/remote-docker/remote-docker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Orb Version 0.1.21
# Orb Version 0.1.22

version: 2.1
description: >
Expand Down Expand Up @@ -104,7 +104,7 @@ commands:
export BUILD_TAG="${CIRCLE_SHA1}${TAG_LABEL}"
if hokusai registry images --limit 1000 | grep -E "$BUILD_TAG([, ]|$)" >/dev/null
if hokusai registry images --tag-exists "$BUILD_TAG" >/dev/null
then
echo "Skipping push as the tag $BUILD_TAG already exists in the Docker registry"
else
Expand Down Expand Up @@ -136,7 +136,7 @@ commands:
hokusai build
printf "%s Image built.\n" "$(TZ=UTC date)"
if hokusai registry images --limit 1000 | grep -E "$BUILD_TAG([, ]|$)" >/dev/null
if hokusai registry images --tag-exists "$BUILD_TAG" >/dev/null
then
echo "Skipping push as the tag $BUILD_TAG already exists in the Docker registry"
else
Expand Down Expand Up @@ -167,7 +167,7 @@ commands:
hokusai build
printf "%s Image built.\n" "$(TZ=UTC date)"
if hokusai registry images --limit 1000 | grep -E "$BUILD_TAG([, ]|$)" >/dev/null
if hokusai registry images --tag-exists "$BUILD_TAG" >/dev/null
then
echo "Skipping push as the tag $BUILD_TAG already exists in the Docker registry"
else
Expand Down

0 comments on commit 700ffd6

Please sign in to comment.