Skip to content

Merge pull request #1500 from jhipster/dependabot/npm_and_yarn/path-t… #1845

Merge pull request #1500 from jhipster/dependabot/npm_and_yarn/path-t…

Merge pull request #1500 from jhipster/dependabot/npm_and_yarn/path-t… #1845

name: build docker image
on:
push:
branches:
- main
pull_request:
jobs:
build_docker_image:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Build docker image
run: docker build -t jhipster/jhipster-dotnetcore:test-build .
- name: Check if docker image exists and remove it
run: |
imageId=$(docker images -q jhipster/jhipster-dotnetcore:test-build)
if [[ -z "${imageId}" ]]; then
echo "Docker image is not getting built or is broken"
exit 1
fi
docker rmi $imageId