forked from showwin/ISHOCON2
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.05 KB
/
build_and_push_images.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
39
40
41
42
43
44
45
46
47
48
name: Build and push images
on:
workflow_dispatch:
push:
branches:
- master
- feat/apple-silicon
concurrency:
group: ${{ github.workflow }}-${{ github.sha }}
cancel-in-progress: true
jobs:
build-and-push-images:
name: Build and push images
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
language:
- "crystal"
- "go"
- "nodejs"
- "php"
- "python"
- "ruby"
arch:
- "arm64"
- "arm64v8"
- "x86_64"
- "unknown"
env:
ISHOCON_APP_LANG: ${{ matrix.language }}
UNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
ARCH: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ env.UNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build images
run: make build
- name: Push images
run: make push