-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1014 Bytes
/
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
name: docker
on:
push:
branches:
- master
jobs:
build:
name: build
runs-on: ubuntu-18.04
strategy:
matrix:
os: [debian-10, ubuntu-20.04]
include:
- os: debian-10
family: debian
version: 10
- os: ubuntu-20.04
family: ubuntu
version: 20.04
steps:
- uses: actions/checkout@master
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: buildx setup
uses: crazy-max/ghaction-docker-buildx@v1
- name: docker login
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login --username fastide --password-stdin
- name: docker build
run: |
docker buildx build \
-t fastide/toolbox-${{ matrix.family }}:${{ matrix.version }} \
--platform=linux/amd64 \
--build-arg OS_FAMILY=${{ matrix.family }} \
--build-arg OS_VERSION=${{ matrix.version }} \
--push .