Skip to content

Commit

Permalink
Update release workflow to comply with new build structure and find r…
Browse files Browse the repository at this point in the history
…ight images

Signed-off-by: marcel <[email protected]>
  • Loading branch information
wagmarcel committed Jan 24, 2024
1 parent 6146026 commit acee7bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}"
TARGET_DOCKER_TAG=`git describe --tags --exact-match` || exit 1
# Tag and push passed "k3d-iff.localhost:12345" with release tag
images=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep ":0.1")
images=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep ":${TARGET_DOCKER_TAG}")
for image in $images; do
newimage=$(echo $image | sed -r "s/:0.1/:${TARGET_DOCKER_TAG}/g" | sed -r "s/k3d-iff.localhost:12345/${DOCKER_PREFIX}/g");
newimage=$(echo $image | sed -r "s/k3d-iff.localhost:12345/${DOCKER_PREFIX}/g");
docker tag ${image} ${newimage};
docker push ${newimage};
done
Expand Down

0 comments on commit acee7bc

Please sign in to comment.