forked from microsoft/vscode-linux-build-agent
-
Notifications
You must be signed in to change notification settings - Fork 11
50 lines (43 loc) · 1.24 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
name: build
on:
push:
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch:
- alpine-arm64
- alpine-x64
- bionic-devtoolset-arm32v7
# - bionic-devtoolset-ppc64le
# - centos7-devtoolset8-arm64
# - centos7-devtoolset8-x64
- focal-arm64
- focal-armhf
- focal-ppc64le
- focal-riscv64
- focal-x64
- focal-devtoolset-ppc64le
- focal-devtoolset-riscv64
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
if: "!endsWith(matrix.arch, 'x64')"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
install: true
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: ${{ matrix.arch }}
file: ${{ matrix.arch }}/Dockerfile
tags: vscodium/vscodium-linux-build-agent:${{ matrix.arch }}
push: ${{ github.ref == 'refs/heads/master' }}