From 0d32c60639f49492b840f6864f4785426b9d93e9 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Sat, 4 Dec 2021 12:13:54 +0100 Subject: Update docker-image.yml --- .github/workflows/docker-image.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 7f786fc..6e51f1e 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -7,12 +7,14 @@ on: branches: [ master ] jobs: - build: - runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag tgbot-cpp:$(date +%s) + - name: Build the docker image + run: docker build -t reo7sp/tgbot-cpp -f Dockerfile . + - name: Build the docker image with unit tests + run: docker build -t reo7sp/tgbot-cpp-test -f Dockerfile_test . + - name: Run unit tests + run: docker run --rm reo7sp/tgbot-cpp-test -- cgit v1.2.3