-
Notifications
You must be signed in to change notification settings - Fork 717
Update release workflow #6697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Update release workflow #6697
Changes from 9 commits
e191ab8
2e11be5
5416a51
764115a
b3662a8
542b898
52d0ba3
c3fb53f
eb9f283
83e43fe
1309bca
52a4727
56b5ee7
2f93b37
573990b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| FROM alpine AS builder | ||
|
|
||
| ARG TARGETPLATFORM | ||
| ENV ARCHIVE_ROOT="/release" | ||
|
|
||
| # upload the release artifacts downloaded to /tmp/release to /release in the build stage | ||
| COPY ./release/ $ARCHIVE_ROOT | ||
|
|
||
| RUN case ${TARGETPLATFORM} in \ | ||
| linux/amd64*) ARCHIVE=${ARCHIVE_ROOT}/linux-musl-x64.zip ;; \ | ||
| linux/arm64*) ARCHIVE=${ARCHIVE_ROOT}/linux-musl-arm64.zip ;; \ | ||
| *) exit 1 ;; \ | ||
| esac \ | ||
| && unzip "$ARCHIVE" "stacks-node" -d /out | ||
|
|
||
| FROM alpine | ||
| COPY --from=builder /out/* /bin/ | ||
| CMD ["/bin/stacks-node run --config /signer-config.toml"] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| FROM alpine AS builder | ||
|
|
||
| LABEL org.opencontainers.image.description="Stacks Signer CLI" | ||
|
|
||
| ARG TARGETPLATFORM | ||
| ENV ARCHIVE_ROOT="/release" | ||
|
|
||
| # upload the release artifacts downloaded to /tmp/release to /release in the build stage | ||
| COPY ./release/ $ARCHIVE_ROOT | ||
|
|
||
| RUN case ${TARGETPLATFORM} in \ | ||
| linux/amd64*) ARCHIVE=${ARCHIVE_ROOT}/linux-musl-x64.zip ;; \ | ||
| linux/arm64*) ARCHIVE=${ARCHIVE_ROOT}/linux-musl-arm64.zip ;; \ | ||
| *) exit 1 ;; \ | ||
| esac \ | ||
| && unzip "$ARCHIVE" "stacks-signer" -d /out | ||
|
|
||
| FROM alpine | ||
| COPY --from=builder /out/* /bin/ | ||
benjamin-stacks marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| CMD ["/bin/stacks-signer run --config /signer-config.toml"] | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Dockerfile used to build an image including all binaries | ||
| FROM alpine AS builder | ||
|
|
||
| ARG TARGETPLATFORM | ||
| ENV ARCHIVE_ROOT="/release" | ||
|
|
||
| # upload the release artifacts downloaded to /tmp/release to /release in the build stage | ||
| COPY ./release/ $ARCHIVE_ROOT | ||
|
|
||
| RUN case ${TARGETPLATFORM} in \ | ||
| linux/amd64*) ARCHIVE=${ARCHIVE_ROOT}/linux-glibc-x64.zip ;; \ | ||
| linux/arm64*) ARCHIVE=${ARCHIVE_ROOT}/linux-glibc-arm64.zip ;; \ | ||
| *) exit 1 ;; \ | ||
| esac \ | ||
| && unzip "$ARCHIVE" -d /out | ||
|
|
||
| FROM debian:stable-slim | ||
| COPY --from=builder /out/* /bin/ | ||
| CMD ["/bin/stacks-node mainnet"] | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| FROM alpine AS builder | ||
|
|
||
| ARG TARGETPLATFORM | ||
| ENV ARCHIVE_ROOT="/release" | ||
|
|
||
| # upload the release artifacts downloaded to /tmp/release to /release in the build stage | ||
| COPY ./release/ $ARCHIVE_ROOT | ||
|
|
||
| RUN case ${TARGETPLATFORM} in \ | ||
| linux/amd64*) ARCHIVE=${ARCHIVE_ROOT}/linux-glibc-x64.zip ;; \ | ||
| linux/arm64*) ARCHIVE=${ARCHIVE_ROOT}/linux-glibc-arm64.zip ;; \ | ||
| *) exit 1 ;; \ | ||
| esac \ | ||
| && unzip "$ARCHIVE" "stacks-node" -d /out | ||
|
|
||
| FROM debian:stable-slim | ||
| COPY --from=builder /out/* /bin/ | ||
| CMD ["/bin/stacks-signer run --config /signer-config.toml"] | ||
aaronb-stacks marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| FROM alpine AS builder | ||
| LABEL org.opencontainers.image.description="Stacks Signer CLI" | ||
|
|
||
| ARG TARGETPLATFORM | ||
| ENV ARCHIVE_ROOT="/release" | ||
|
|
||
| # upload the release artifacts downloaded to /tmp/release to /release in the build stage | ||
| COPY ./release/ $ARCHIVE_ROOT | ||
|
|
||
| RUN case ${TARGETPLATFORM} in \ | ||
| linux/amd64*) ARCHIVE=${ARCHIVE_ROOT}/linux-glibc-x64.zip ;; \ | ||
| linux/arm64*) ARCHIVE=${ARCHIVE_ROOT}/linux-glibc-arm64.zip ;; \ | ||
| *) exit 1 ;; \ | ||
| esac \ | ||
| && unzip "$ARCHIVE" "stacks-signer" -d /out | ||
|
|
||
| FROM debian:stable-slim | ||
| COPY --from=builder /out/* /bin/ | ||
| CMD ["/bin/stacks-signer run --config /signer-config.toml"] | ||
|
||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.