Skip to content

Commit

Permalink
Update release workflow to use branch tagging info correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
wagmarcel committed May 13, 2024
1 parent d4f3e4f commit 3bf9a13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DOCKER_TAG=v0.6.0-beta.1
DOCKER_TAG=v0.6-latest
5 changes: 2 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ jobs:
TARGET_DOCKER_TAG=`git describe --tags --exact-match` || exit 1
echo Selected tag ${TARGET_DOCKER_TAG}
# Tag and push passed "k3d-iff.localhost:12345" with release tag
docker images
images=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep ":${TARGET_DOCKER_TAG}" | grep "k3d-iff.localhost")
images=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep k3d-iff | grep ${DOCKER_TAG} )
echo I will push the following images: ${images}
for image in $images; do
newimage=$(echo $image | sed -r "s/k3d-iff.localhost:12345/docker.io/g");
newimage=$(echo $image | sed -r "s/:${DOCKER_TAG}/:${TARGET_DOCKER_TAG}/g" | sed -r "s/k3d-iff.localhost:12345\///g");
echo I will push image ${image} as ${newimage}
docker tag ${image} ${newimage};
docker push ${newimage};
Expand Down

0 comments on commit 3bf9a13

Please sign in to comment.