File tree Expand file tree Collapse file tree 3 files changed +3
-22
lines changed
Expand file tree Collapse file tree 3 files changed +3
-22
lines changed Original file line number Diff line number Diff line change 3939 done
4040 build :
4141 needs : define-matrix
42- runs-on : ubuntu-latest
42+ runs-on : >-
43+ ${{ (contains(matrix.component, 'arm64')) && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
4344 strategy :
4445 fail-fast : false
4546 matrix :
Original file line number Diff line number Diff line change @@ -34,13 +34,7 @@ COPY --from=builder /go/qemu-arm-static /usr/bin/
3434<% elsif is_arm64 %>
3535# To set multiarch build for Docker hub automated build.
3636FROM golang:alpine AS builder
37- WORKDIR /go
38- ENV QEMU_DOWNLOAD_SHA256 5db25cccb40ac7b1ca857653b883376b931d91b06ff34ffe70dcf6180bd07bb8
39- RUN apk add curl --no-cache
40- RUN curl -sL -o qemu-6.0.0.balena1-aarch64.tar.gz https://github.com/balena-io/qemu/releases/download/v6.0.0%2Bbalena1/qemu-6.0.0.balena1-aarch64.tar.gz && echo "$QEMU_DOWNLOAD_SHA256 *qemu-6.0.0.balena1-aarch64.tar.gz" | sha256sum -c - | tar zxvf qemu-6.0.0.balena1-aarch64.tar.gz -C . && mv qemu-6.0.0+balena1-aarch64/qemu-aarch64-static .
41-
4237FROM --platform=linux/arm64 arm64v8/ruby:3.2-slim-bookworm
43- COPY --from=builder /go/qemu-aarch64-static /usr/bin/
4438<% else %>
4539FROM ruby:3.2-slim-bookworm
4640<% end %>
@@ -52,10 +46,6 @@ LABEL Description="Fluentd docker image" Vendor="Fluent Organization" Version="<
5246ARG CROSS_BUILD_START="cross-build-start"
5347ARG CROSS_BUILD_END="cross-build-end"
5448RUN [ ${CROSS_BUILD_START} ]
55- <% elsif is_arm64 %>
56- ARG CROSS_BUILD_START="cross-build-start"
57- ARG CROSS_BUILD_END="cross-build-end"
58- RUN [ ${CROSS_BUILD_START} ]
5949<% end %>
6050<% if not is_alpine %>
6151<% if is_armhf %>
@@ -192,7 +182,7 @@ USER fluent
192182ENTRYPOINT ["tini", "--", "/bin/entrypoint.sh"]
193183CMD ["fluentd"]
194184
195- <% if is_armhf || is_arm64 %>
185+ <% if is_armhf %>
196186RUN [ ${CROSS_BUILD_END} ]
197187<% end %>
198188<% end %>
Original file line number Diff line number Diff line change 33
44# To set multiarch build for Docker hub automated build.
55FROM golang:alpine AS builder
6- WORKDIR /go
7- ENV QEMU_DOWNLOAD_SHA256 5db25cccb40ac7b1ca857653b883376b931d91b06ff34ffe70dcf6180bd07bb8
8- RUN apk add curl --no-cache
9- RUN curl -sL -o qemu-6.0.0.balena1-aarch64.tar.gz https://github.com/balena-io/qemu/releases/download/v6.0.0%2Bbalena1/qemu-6.0.0.balena1-aarch64.tar.gz && echo "$QEMU_DOWNLOAD_SHA256 *qemu-6.0.0.balena1-aarch64.tar.gz" | sha256sum -c - | tar zxvf qemu-6.0.0.balena1-aarch64.tar.gz -C . && mv qemu-6.0.0+balena1-aarch64/qemu-aarch64-static .
10-
116FROM --platform=linux/arm64 arm64v8/ruby:3.2-slim-bookworm
12- COPY --from=builder /go/qemu-aarch64-static /usr/bin/
137LABEL maintainer
"Fluentd developers <[email protected] >" 148LABEL Description="Fluentd docker image" Vendor="Fluent Organization" Version="1.16.7"
15- ARG CROSS_BUILD_START="cross-build-start"
16- ARG CROSS_BUILD_END="cross-build-end"
17- RUN [ ${CROSS_BUILD_START} ]
189ENV TINI_VERSION=0.18.0
1910
2011# Do not split this into multiple RUN!
@@ -78,4 +69,3 @@ USER fluent
7869ENTRYPOINT ["tini" , "--" , "/bin/entrypoint.sh" ]
7970CMD ["fluentd" ]
8071
81- RUN [ ${CROSS_BUILD_END} ]
You can’t perform that action at this time.
0 commit comments