From b0b4fcbc4eab05d283c1e29707085613ee842b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20S=C3=A9hier?= Date: Fri, 10 Nov 2023 10:25:01 +0100 Subject: [PATCH] change package name to docker-terraform --- update.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/update.sh b/update.sh index 31a4152..a74e3b3 100755 --- a/update.sh +++ b/update.sh @@ -33,18 +33,20 @@ get_tags_ghcr () { } ######################################################## -# From 'hashicorp/terraform' to 'camptocamp/terraform' # +# From 'hashicorp/terraform' to 'camptocamp/docker-terraform' # ######################################################## # Get list of new tags -new_tags=$(echo $(get_tags_dhub 'hashicorp/terraform') $(get_tags_ghcr $github_pat 'camptocamp/terraform') $(get_tags_ghcr $github_pat 'camptocamp/terraform') | tr ' ' '\n' | sort -V | uniq -u) +new_tags=$(echo $(get_tags_dhub 'hashicorp/terraform') $(get_tags_ghcr $github_pat 'camptocamp/docker-terraform') $(get_tags_ghcr $github_pat 'camptocamp/docker-terraform') | tr ' ' '\n' | sort -V | uniq -u) # Build from 0.13.0 forward new_tags=$(echo ${new_tags/0.12.30//} | cut -d/ -f2) +echo $PAT | docker login ghcr.io --password-stdin + # Build new images only if there are new tags for j in $new_tags do - docker build --build-arg TAG=$j -t 'ghcr.io/camptocamp/terraform':$j . - docker push 'ghcr.io/camptocamp/terraform':$j + docker build --build-arg TAG=$j -t 'ghcr.io/camptocamp/docker-terraform':$j . + docker push 'ghcr.io/camptocamp/docker-terraform':$j done