Skip to content

Commit

Permalink
Merge pull request #1723 from thetic/docker
Browse files Browse the repository at this point in the history
Port Docker builds from Travis
  • Loading branch information
basvodde committed Dec 19, 2022
2 parents a74cf2c + d0552b4 commit ea1b278
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -488,3 +488,28 @@ jobs:
./configure
- name: Build and test
run: make tdd

Docker:
strategy:
matrix:
image: ["ubuntu", "dos"]
runs-on: ubuntu-latest
name: Docker ${{ matrix.image }}
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
env:
TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
if: ${{ env.TOKEN != '' }}
- name: Build
uses: docker/build-push-action@v3
with:
file: docker/Dockerfile.${{ matrix.image }}
tags: cpputest/${{ matrix.image }}

0 comments on commit ea1b278

Please sign in to comment.