Skip to content

Commit e332d88

Browse files
authored
Merge pull request #1859 from mtfurlan/ci/run-docker
ci: actually run docker builds
2 parents 89ac9b2 + 40aca64 commit e332d88

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

.github/workflows/basic.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -421,20 +421,12 @@ jobs:
421421
runs-on: ubuntu-latest
422422
name: Docker ${{ matrix.image }}
423423
steps:
424-
- name: Set up QEMU
425-
uses: docker/setup-qemu-action@v2
426-
- name: Set up Docker Buildx
427-
uses: docker/setup-buildx-action@v2
428-
- name: Login to Docker Hub
429-
uses: docker/login-action@v2
430-
with:
431-
username: ${{ secrets.DOCKERHUB_USERNAME }}
432-
password: ${{ secrets.DOCKERHUB_TOKEN }}
433-
env:
434-
TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
435-
if: ${{ env.TOKEN != '' }}
436424
- name: Build
437425
uses: docker/build-push-action@v3
438426
with:
439427
file: docker/Dockerfile.${{ matrix.image }}
440-
tags: cpputest/${{ matrix.image }}
428+
tags: cpputest/${{ matrix.image }}:latest
429+
push: false
430+
- name: Test
431+
run: |
432+
docker run --rm cpputest/${{ matrix.image }}:latest

docker/Dockerfile.dos

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ RUN apt-get -qq update && apt-get -qq install -y --no-install-recommends dosbox
44

55
WORKDIR /cpputest_build
66

7+
COPY ../ /cpputest
8+
79
CMD ["/cpputest/scripts/dos_build_test.sh"]

docker/Dockerfile.ubuntu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ RUN apt-get update && \
55

66
WORKDIR /cpputest_build
77

8-
CMD autoreconf -i ../cpputest && ../cpputest/configure && make tdd
8+
COPY ../ /cpputest
9+
10+
CMD ["bash", "-c", "autoreconf -i /cpputest && /cpputest/configure && make tdd"]

0 commit comments

Comments
 (0)