Skip to content

Commit

Permalink
ci(actions): add workflow for publishing images to DockerHub
Browse files Browse the repository at this point in the history
Including an arm64 build
  • Loading branch information
mloberg committed Jun 14, 2021
1 parent dc1ced4 commit 63b527e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build

on:
push:
branches:
- main
- master

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
elixir:
- "1.9"
- "1.10"
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v2
with:
context: ${{ matrix.elixir }}
push: true
tags: articulate/articulate-elixir:${{ matrix.elixir }}
platforms: linux/amd64,linux/arm64/v8
cache-from: type=registry,ref=articulate/articulate-elixir:${{ matrix.elixir }}
cache-to: type=inline

0 comments on commit 63b527e

Please sign in to comment.