Skip to content

Commit

Permalink
make wget quiet, export vars
Browse files Browse the repository at this point in the history
  • Loading branch information
jbellmann committed Apr 26, 2024
1 parent dbb3860 commit 15dbd5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-atlantis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- name: Build an push the image
run: |
echo "${{ secrets.GHA_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
IMAGE_NAME=ghcr.io/${{ github.repository }}
IMAGE_TAG=0.27.3-${{ github.run_number }}
export IMAGE_NAME=ghcr.io/${{ github.repository }}
export IMAGE_TAG=0.27.3-${{ github.run_number }}
./customize.sh
docker push $IMAGE_NAME:$IMAGE_TAG
5 changes: 4 additions & 1 deletion customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ TARGET_FILE="terragrunt"

rm -f $TARGET_FILE

wget -q $TG_DOWNLOAD_LINK --output-document $TARGET_FILE

if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' -e "1s/ATLANTIS_VERSION/$ATLANTIS_VERSION/g" Dockerfile
else
Expand All @@ -20,7 +22,8 @@ fi
echo "customized Dockerfile ..."
cat Dockerfile

wget $TG_DOWNLOAD_LINK --output-document $TARGET_FILE
echo "Name: $IMAGE_NAME"
echo "Tag: $IMAGE_TAG"

docker build -t $IMAGE_NAME:$IMAGE_TAG .

Expand Down

0 comments on commit 15dbd5d

Please sign in to comment.