Merge pull request #130 from naviqore/dependabot/maven/org.mockito-mo… #270
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build image | |
run: | | |
COMMIT_HASH=$(git rev-parse --short HEAD) | |
IMAGE_TAG=ghcr.io/${{ github.repository }}:${COMMIT_HASH} | |
docker build . --file Dockerfile --tag $IMAGE_TAG |