-
Notifications
You must be signed in to change notification settings - Fork 408
51 lines (48 loc) · 1.42 KB
/
main.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
49
50
51
name: Build all images
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
defaults:
run:
shell: bash
jobs:
build:
name: "build-${{ matrix.img }}"
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
img:
- full
- customizable
- nodejs
- jruby94
- jruby93
# - ruby34 # REL: 2024-12-25
- ruby33 # EOL: 2027-03-31
- ruby32 # EOL: 2026-03-31
- ruby31 # EOL: 2025-03-31
- ruby30 # EOL: 2024-03-31
# https://www.ruby-lang.org/en/downloads/branches/
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Purge containers
run: 'docker kill $(docker ps -q) || exit 0'
- name: Enable docker multiarch
run: 'docker run --privileged --rm tonistiigi/binfmt --install all'
- name: "Run make build_${{ matrix.img }}"
run: "make build_${{ matrix.img }}"
- name: Log in to the Container registry
if: ${{ github.event.pull_request.merged || github.actor == 'CamJN' }}
uses: docker/login-action@v3
id: login
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to github container registry
if: ${{ success() && steps.login.conclusion != 'skipped' }}
run: "make release_${{ matrix.img }}"