Skip to content

Commit

Permalink
simplify container naming
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Feb 25, 2024
1 parent 6bfb367 commit 62e8779
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/publish.yml
Expand Up @@ -62,14 +62,10 @@ jobs:
- name: push container
id: push
run: |
REPO="$(docker images --format json | grep mazes | jq -r ".Repository" | head -n 1)"
TAG="$(docker images --format json | grep mazes | jq -r ".Tag" | head -n 1)"
REPO="gcr.io/bytes-zone/mazes"
TAG="$(docker images "$REPO" --format "{{.Tag}}")"
SOURCE_NAME="$REPO:$TAG"
FINAL_NAME="$REGISTRY/$IMAGE_NAME:$TAG"
echo "$SOURCE_NAME -> $FINAL_NAME"
docker tag "$SOURCE_NAME" "$FINAL_NAME"
FINAL_NAME="$REPO:$TAG"
docker push "$FINAL_NAME"
echo "image=$FINAL_NAME" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 62e8779

Please sign in to comment.