Skip to content

Commit

Permalink
removed docker prefix usage
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijith-hr authored and wagmarcel committed Apr 15, 2024
1 parent f943b50 commit 33834a1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_PREFIX: ${{ secrets.DOCKER_PREFIX }}
SELF_HOSTED_RUNNER: true
steps:
- uses: actions/checkout@v4
Expand All @@ -37,14 +36,10 @@ jobs:
# Tag and push passed "k3d-iff.localhost:12345:<image>:${DOCKER_TAG}" images as latest
images=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep k3d-iff | grep ${DOCKER_TAG} )
for image in ${images}; do
newimage=$(echo $image | sed -r "s/:${DOCKER_TAG}/:latest/g" | sed -r "s/k3d-iff.localhost:12345/${DOCKER_PREFIX}/g");
newimage=$(echo $image | sed -r "s/:${DOCKER_TAG}/:latest/g" | sed -r "s/k3d-iff.localhost:12345\///g");
docker tag ${image} ${newimage};
docker push ${newimage};
newimage=$(echo $image | sed -r "s/:${DOCKER_TAG}/:${TARGET_DOCKER_TAG}/g" | sed -r "s/k3d-iff.localhost:12345/${DOCKER_PREFIX}/g");
newimage=$(echo $image | sed -r "s/:${DOCKER_TAG}/:${TARGET_DOCKER_TAG}/g" | sed -r "s/k3d-iff.localhost:12345\///g");
docker tag ${image} ${newimage};
docker push ${newimage};
done

0 comments on commit 33834a1

Please sign in to comment.