-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1001 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build
on:
push:
branches:
- main
schedule: # Run everyday
- cron: "0 0 * * *"
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
elixir:
- "1.9"
- "1.10"
- "1.11"
- "1.12"
- "1.13"
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v3
with:
context: ${{ matrix.elixir }}
push: ${{ github.event_name != 'pull_request' }}
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