Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanmars committed Sep 14, 2024
1 parent 6cb5c1d commit 9619666
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.labels }}

# cleans up untagged images, keeps all versioned images and main, and 3 RC images
# cleans up untagged images, keeps all versioned images and main, and 3 rc images
cleanup-images:
name: cleanup-images
runs-on: ubuntu-latest
Expand All @@ -207,8 +207,8 @@ jobs:
with:
packages: "tiecd/jdk8,tiecd/jdk11,tiecd/jdk17,tiecd/jdk21,tiecd/vercel,tiecd/base,tiecd/k8s,tiecd/okd,tiecd/gke,tiecd/eks,tiecd/aks,tiecd/node18,tiecd/node20"
delete-untagged: true
keep-n-tagged: 1
exclude-tags: "^\\d+\\.\\d+\\.\\d+$|^main$"
keep-n-tagged: 3
exclude-tags: "^\\d+\\.\\d+\\.\\d+$|^latest$|^main$"
use-regex: true
token: ${{ secrets.GITHUB_TOKEN }}

11 changes: 6 additions & 5 deletions scripts/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ while read tag; do
docker push $tag

# tag okd image openshift also
#if [ "$1" == "okd" ]; then
# docker tag $tag-$1 $tag-openshift
# echo "docker push $tag-openshift"
# docker push $tag-openshift
#fi
if [ "$1" == "okd" ]; then
newtag = $(echo "$tag" | sed -r 's/okd/openshift/g')
docker tag $tag $newtag
echo "docker push $newtag"
docker push $newtag
fi
done <tags.txt

0 comments on commit 9619666

Please sign in to comment.