File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
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' }}
You can’t perform that action at this time.
0 commit comments