Skip to content

Commit

Permalink
try multiple builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dciangot committed Dec 17, 2020
1 parent 179eb2f commit c3f6939
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: ci
on:
push:
tags:
- "*"
- "*-jhub"

jobs:
path-context:
jhub:
runs-on: ubuntu-latest
steps:
-
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/spark.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit c3f6939

Please sign in to comment.