Skip to content

Commit 4f5b013

Browse files
jeanp413mustard-mh
authored andcommitted
Add build workflow
1 parent 9199d1b commit 4f5b013

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: build
2+
3+
on:
4+
workflow_dispatch:
5+
# push:
6+
7+
jobs:
8+
linux:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
arch: [bionic-x64, stretch-arm64, stretch-armhf, centos7_devtoolset8_x64]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Set up QEMU
19+
uses: docker/setup-qemu-action@v1
20+
if: matrix.qemu == 'true'
21+
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v1
24+
with:
25+
install: true
26+
27+
- name: Login to DockerHub
28+
uses: docker/login-action@v1
29+
with:
30+
username: ${{ secrets.DOCKERHUB_USERNAME }}
31+
password: ${{ secrets.DOCKERHUB_TOKEN }}
32+
33+
- name: Build and push
34+
uses: docker/build-push-action@v2
35+
with:
36+
context: ${{ matrix.arch }}
37+
file: ${{ matrix.arch }}/Dockerfile
38+
tags: gitpod/openvscode-server-linux-build-agent:${{ matrix.arch }}
39+
push: ${{ github.ref == 'refs/heads/main' }}

0 commit comments

Comments
 (0)