forked from hijadelaluuna/linuxbrew
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.29 KB
/
docker.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
name: ci_dockerfile
on:
push:
branches:
- master
jobs:
build:
name: build
runs-on: ubuntu-18.04
strategy:
matrix:
os: [ubuntu-20.04, debian-10, fedora-35]
include:
- os: ubuntu-20.04
family: ubuntu
version: 20.04
- os: debian-10
family: debian
version: 10
- os: fedora-35
family: fedora
version: 35
steps:
- uses: actions/checkout@master
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: docker login
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login --username fastide --password-stdin
- name: docker build
run: |
pushd docker/${{matrix.family}}-${{matrix.version}}
tar -czh . | docker buildx build \
-t fastide/linuxbrew-${{ matrix.family }}:${{ matrix.version }} \
--platform=linux/amd64 \
--build-arg OS_FAMILY=${{ matrix.family }} \
--build-arg OS_VERSION=${{ matrix.version }} \
--push -
# popd
# docker build --build-arg OS_FAMILY=${{matrix.family}} --build-arg OS_VERSION=${{matrix.version}} tests