From c3f6939bc72c56e599ad4dd72ee3a06e0589fbfe Mon Sep 17 00:00:00 2001 From: dciangot Date: Thu, 17 Dec 2020 11:08:28 +0000 Subject: [PATCH] try multiple builds --- .../{build-and-push.yaml => jhub.yaml} | 4 +- .github/workflows/spark.yaml | 42 +++++++++++++++++++ 2 files changed, 44 insertions(+), 2 deletions(-) rename .github/workflows/{build-and-push.yaml => jhub.yaml} (97%) create mode 100644 .github/workflows/spark.yaml diff --git a/.github/workflows/build-and-push.yaml b/.github/workflows/jhub.yaml similarity index 97% rename from .github/workflows/build-and-push.yaml rename to .github/workflows/jhub.yaml index cd2ee14b..6abc3451 100644 --- a/.github/workflows/build-and-push.yaml +++ b/.github/workflows/jhub.yaml @@ -3,10 +3,10 @@ name: ci on: push: tags: - - "*" + - "*-jhub" jobs: - path-context: + jhub: runs-on: ubuntu-latest steps: - diff --git a/.github/workflows/spark.yaml b/.github/workflows/spark.yaml new file mode 100644 index 00000000..fcda3c81 --- /dev/null +++ b/.github/workflows/spark.yaml @@ -0,0 +1,42 @@ +name: ci + +on: + push: + tags: + - "*-spark" + +jobs: + jhub: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + - + name: Docker meta + id: docker_meta + uses: crazy-max/ghaction-docker-meta@v1 + with: + images: dodasts/spark # list of Docker images to use as base name for tags + tag-sha: true # add git short SHA as Docker tag + - + name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - + name: Login to DockerHub + 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: + context: ./docker/jupyter-hub + file: ./docker/spark/Dockerfile + platforms: linux/amd64,linux/arm64,linux/386 + push: true + tags: ${{ steps.docker_meta.outputs.tags }} \ No newline at end of file