File tree Expand file tree Collapse file tree 2 files changed +45
-1
lines changed Expand file tree Collapse file tree 2 files changed +45
-1
lines changed Original file line number Diff line number Diff line change 8
8
type : boolean
9
9
tag :
10
10
description : " Github release tag"
11
+ dockerRelease :
12
+ description : " Create Dockerhub Releasee"
13
+ type : boolean
11
14
12
15
jobs :
13
16
generate_toolchain :
14
17
strategy :
15
- fail-fast : false
18
+ fail-fast : true
16
19
matrix :
17
20
include :
18
21
- arch : amd64
75
78
repository : ${{ github.repository_owner }}/vscode-linux-build-agent
76
79
tag_name : ${{ inputs.tag }}
77
80
files : upload/*
81
+
82
+ linux :
83
+ runs-on : ubuntu-latest
84
+ strategy :
85
+ fail-fast : false
86
+ matrix :
87
+ arch : [bionic-arm32v7, centos7-devtoolset8-x64, centos7-devtoolset8-arm64]
88
+ include :
89
+ - arch : centos7-devtoolset8-arm64
90
+ qemu : true
91
+ - arch : bionic-arm32v7
92
+ qemu : true
93
+
94
+ steps :
95
+ - uses : actions/checkout@v3
96
+
97
+ - name : Set up QEMU
98
+ uses : docker/setup-qemu-action@v2
99
+ if : matrix.qemu == true
100
+
101
+ - name : Set up Docker Buildx
102
+ uses : docker/setup-buildx-action@v2
103
+ with :
104
+ install : true
105
+
106
+ - name : Login to DockerHub
107
+ uses : docker/login-action@v2
108
+ with :
109
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
110
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
111
+
112
+ - name : Build and push
113
+ uses : docker/build-push-action@v4
114
+ with :
115
+ context : ${{ matrix.arch }}
116
+ file : ${{ matrix.arch }}/Dockerfile
117
+ tags : gitpod/openvscode-server-linux-build-agent:${{ matrix.arch }}
118
+ push : ${{ inputs.dockerRelease == true }}
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ FROM ${REPO}:${TAG}
4
4
5
5
ARG DEBIAN_FRONTEND=noninteractive
6
6
7
+ # https://github.com/moby/moby/issues/27988#issuecomment-462809153
8
+ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
9
+
7
10
# Github uses uid 1001 and gid 121
8
11
RUN groupadd --gid 121 builduser \
9
12
&& useradd --uid 1001 --gid builduser --shell /bin/bash --create-home builduser \
You can’t perform that action at this time.
0 commit comments