Skip to content

Commit

Permalink
change package name to docker-terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
saimonn committed Nov 10, 2023
1 parent 0cc7341 commit 7067974
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ 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)

# 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

0 comments on commit 7067974

Please sign in to comment.