Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
add build for dojo-basic-lite container
  • Loading branch information
JGillam authored Aug 1, 2024
1 parent 01bbaf1 commit 5bfdd65
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5bfdd65

Please sign in to comment.