diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index e3390f6..5b0e5aa 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -73,3 +73,16 @@ jobs: docker build . --file .shogun/Dockerfile.dojo-scavenger-db --tag dojo-scavenger-db docker tag dojo-scavenger-db $IMAGE_ID:$VERSION docker push $IMAGE_ID:$VERSION + + - name : Build and push basicphp-lite image + run: | + IMAGE_ID=ghcr.io/${{ github.repository_owner }}/dojo-basic-lite + IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') + VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') + [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//') + [ "$VERSION" == "master" ] && VERSION=latest + echo IMAGE_ID=$IMAGE_ID + echo VERSION=$VERSION + docker build . --file .shogun/Dockerfile.dojo-basic-lite --tag dojo-basic-lite + docker tag dojo-basic-lite $IMAGE_ID:$VERSION + docker push $IMAGE_ID:$VERSION