diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..cb13c40 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,41 @@ +name: ci + +on: + push: + branches: + - 'master' + +jobs: + ansible-build: + runs-on: ubuntu-latest + strategy: + matrix: + include: + - image: ansible + subdir: debian-buster + - image: ansible + subdir: debian-buster-tools + - image: ansible + subdir: ezplatform-toolbox + steps: + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + - name: Log in to the Container registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v4 + with: + context: "./${{ matrix.image }}/${{ matrix.subdir }}" + file: ./Dockerfile + push: true + tags: "${{ matrix.image }}:${{ matrix.subdir }}:latest" \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index b115b38..3c569f6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,9 +2,6 @@ services: - docker env: matrix: - - IMAGE=ansible VERSION=debian-buster - - IMAGE=ansible VERSION=debian-buster-tools - - IMAGE=ansible VERSION=ezplatform-toolbox - IMAGE=docker-compose VERSION=latest - IMAGE=docker-compose VERSION=19.03.1 - IMAGE=docker-compose VERSION=19.03.1-dind