Skip to content

Commit

Permalink
Merge pull request #3 from jandubois/tarball-arch
Browse files Browse the repository at this point in the history
Use machine hardware name instead of TARGETARCH in tarball name
  • Loading branch information
mook-as authored Jun 27, 2024
2 parents 22b4029 + f430334 commit a848d87
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/package.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,17 @@ RUN abuild -r
WORKDIR /alpine/openresty
RUN abuild -r

ARG TARGETARCH
ARG RELEASE_VERSION
WORKDIR /home/abuild-user/packages/alpine/
RUN cp ~/.abuild/rd-openresty-*.pub .
RUN tar cvf /tmp/openresty-${TARGETARCH}.tar \
RUN tar cvf /tmp/openresty-$(uname -m).tar \
*.pub \
$(uname -m)/rd-openresty-[0-9]*.apk \
$(uname -m)/rd-openresty-openssl111-[0-9]*.apk \
$(uname -m)/rd-openresty-pcre-[0-9]*.apk \
$(uname -m)/rd-openresty-zlib-[0-9]*.apk
RUN if [ -n "${RELEASE_VERSION}" ]; \
then mv /tmp/openresty-${TARGETARCH}.tar /tmp/openresty-${RELEASE_VERSION}-${TARGETARCH}.tar; \
then mv /tmp/openresty-$(uname -m).tar /tmp/openresty-${RELEASE_VERSION}-$(uname -m).tar; \
fi

FROM scratch
Expand Down

0 comments on commit a848d87

Please sign in to comment.