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