Skip to content

Commit f6b6edd

Browse files
committed
ci: test linux
1 parent 49a8953 commit f6b6edd

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.ci/Dockerfile.amzn2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG FROM=ghcr.io/emqx/emqx-builder/5.1-3:1.14.5-25.3.2-1-amzn2
1+
ARG FROM=ghcr.io/emqx/emqx-builder/5.5-5:1.18.3-27.3.4.2-1-amzn2
22
FROM ${FROM}
33

44
RUN alternatives --set python /usr/bin/python2 && \

.github/workflows/release.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,21 @@ jobs:
137137
ref: ${{ github.event.inputs.build_from }} # when input is not given, the event tag is used
138138

139139
- name: build release
140+
if: matrix.os == 'amzn2'
141+
env:
142+
CI_RELEASE_VERSION: ${{ github.event.inputs.release_as }}
143+
CONTAINER: ghcr.io/emqx/emqx-builder/${{ matrix.builder.vsn }}-${{ matrix.os }}
144+
run: |
145+
docker build --build-arg FROM=$CONTAINER -t emqx-builder:amzn2 -f .ci/Dockerfile.amzn2 .
146+
docker run -t --rm --user 1001 \
147+
-v $(pwd):/wd \
148+
--workdir /wd \
149+
-e BUILD_RELEASE=1 \
150+
-e CI_RELEASE_VERSION=$CI_RELEASE_VERSION \
151+
emqx-builder:amzn2 bash -euc './build.sh'
152+
153+
- name: build release
154+
if: matrix.os != 'amzn2'
140155
env:
141156
CI_RELEASE_VERSION: ${{ github.event.inputs.release_as }}
142157
CONTAINER: ghcr.io/emqx/emqx-builder/${{ matrix.builder.vsn }}-${{ matrix.os }}

0 commit comments

Comments
 (0)