From 9b5bdae68d071a11aab9664fe3513915258bdc9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hern=C3=A1n=20Lucas=20Pereira?= Date: Thu, 31 Aug 2023 22:35:01 -0300 Subject: [PATCH] Split registry and repo in separete args --- .github/workflows/build_all_images.yml | 2 +- build_image.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_all_images.yml b/.github/workflows/build_all_images.yml index d1e2aeb..d676814 100644 --- a/.github/workflows/build_all_images.yml +++ b/.github/workflows/build_all_images.yml @@ -35,7 +35,7 @@ jobs: uses: actions/checkout@v3 - name: Build image - run: ./build_image.sh ${{ env.REGISTRY }}/sfg-taxonpages/${{ matrix.repo }} + run: ./build_image.sh ${{ env.REGISTRY }} ${{ matrix.repo }} - name: Log in to the Container registry uses: docker/login-action@v2 diff --git a/build_image.sh b/build_image.sh index a8ac5af..312a9b9 100755 --- a/build_image.sh +++ b/build_image.sh @@ -3,13 +3,13 @@ set -e rm -rf tmp -git clone https://github.com/sfg-taxonpages/$1.git tmp +git clone https://github.com/sfg-taxonpages/$2.git tmp cd tmp git checkout main git checkout setup . rm config/router.yml cd .. cp Dockerfile .dockerignore tmp -docker build -t sfg-taxonpages/$1 tmp +docker build -t $1/sfg-taxonpages/$2 tmp rm -rf tmp