-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 1.4 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Build
on:
push:
paths-ignore:
- "**.md"
- "examples/**"
branches:
- main
jobs:
build-base:
name: Build Base Image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v2
with:
push: true
tags:
ghcr.io/${{ github.repository_owner }}/devcontainer:bullseye
build-node-ruby:
name: Build devcontainer with node and ruby installed
needs: build-base
runs-on: ubuntu-latest
strategy:
matrix:
node: ["18.10.0", "16.17.1", "14.20.1"]
ruby: ["3.1.2", "3.0.4", "2.7.6"]
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v2
with:
context: ./node-ruby
build-args: |
BASE_TAG=bullseye
NODE_VERSION=${{ matrix.node }}
RUBY_VERSION=${{ matrix.ruby }}
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/devcontainer:node-${{ matrix.node }}-ruby-${{ matrix.ruby }}-bullseye