Skip to content

Commit

Permalink
Split registry and repo in separete args
Browse files Browse the repository at this point in the history
  • Loading branch information
LocoDelAssembly committed Sep 1, 2023
1 parent e77f53a commit 9b5bdae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_all_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9b5bdae

Please sign in to comment.