Skip to content

Commit

Permalink
Merge branch 'main' of github.com:bioimage-io/BioEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed May 6, 2024
2 parents 350ecbb + c409f4e commit 2bcb2eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,16 @@ jobs:
echo "${docker_dirs}" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
# This should be docker compose or something

- name: Build and Push Docker Images
run: |
while IFS= read -r dir; do
if [[ -n "$dir" ]]; then
dockerfile="./$dir/Dockerfile"
image_name=$(basename "$dir") # Extracts the name of the directory
docker build -f "$dockerfile" -t ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:latest
docker push ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:latest .
docker build -f "$dockerfile" -t ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:latest .
docker push ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:latest
# tag the image with the short SHA
docker tag ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:latest ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:${{ env.SHORT_SHA }}
docker push ${{ env.REGISTRY }}/${{ github.repository_owner }}/$image_name:${{ env.SHORT_SHA }}
Expand Down

0 comments on commit 2bcb2eb

Please sign in to comment.