From 9df7bf7ccd985ed545961b3a7d65141a976841bc Mon Sep 17 00:00:00 2001 From: iphydf Date: Tue, 8 Mar 2022 20:31:39 +0000 Subject: [PATCH] chore: Add testing/Dockerfile to the CI build. --- .github/workflows/docker.yml | 38 +++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 3348126f1c..1622775f33 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -26,8 +26,9 @@ jobs: if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }} run: docker push toxchat/bootstrap-node:"$(other/print-version)" - docker-toxcore-js: + docker-bootstrap-node-websocket: runs-on: ubuntu-latest + needs: [docker-bootstrap-node] steps: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 @@ -40,15 +41,14 @@ jobs: - name: Build and push uses: docker/build-push-action@v2 with: - file: other/emscripten/Dockerfile + context: "{{defaultContext}}:other/bootstrap_daemon/websocket" push: ${{ github.event_name == 'push' }} - tags: toxchat/toxcore-js:latest - cache-from: type=registry,ref=toxchat/toxcore-js:latest + tags: toxchat/bootstrap-node:latest-websocket + cache-from: type=registry,ref=toxchat/bootstrap-node:latest-websocket cache-to: type=inline - docker-bootstrap-node-websocket: + docker-fuzzer: runs-on: ubuntu-latest - needs: [docker-bootstrap-node] steps: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 @@ -61,10 +61,30 @@ jobs: - name: Build and push uses: docker/build-push-action@v2 with: - context: "{{defaultContext}}:other/bootstrap_daemon/websocket" + file: testing/Dockerfile push: ${{ github.event_name == 'push' }} - tags: toxchat/bootstrap-node:latest-websocket - cache-from: type=registry,ref=toxchat/bootstrap-node:latest-websocket + tags: toxchat/c-toxcore:fuzzer + cache-from: type=registry,ref=toxchat/c-toxcore:fuzzer + cache-to: type=inline + + docker-toxcore-js: + runs-on: ubuntu-latest + steps: + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + if: ${{ github.event_name == 'push' }} + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + with: + file: other/emscripten/Dockerfile + push: ${{ github.event_name == 'push' }} + tags: toxchat/c-toxcore:wasm + cache-from: type=registry,ref=toxchat/c-toxcore:wasm cache-to: type=inline docker-win32: