-
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
Open
wileyj
wants to merge
12
commits into
stacks-network:develop
Choose a base branch
from
wileyj:chore/6601
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,182
−789
Open
Update release workflow #6697
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e191ab8
Updating relase workflow to use artifacts and push images to ghcr
wileyj 2e11be5
Cleanup and add some more comments
wileyj 5416a51
remove forked composite for docker
wileyj 764115a
use the release profile, not release-lite
wileyj b3662a8
disable PR creation with recent change to settings this will not work
wileyj 542b898
fix inconsistent var formatting
wileyj 52d0ba3
remove commented step
wileyj c3fb53f
addressing PR comments and adding consistency to env vars
wileyj eb9f283
- removed atlas_test, slow_test workflows and adjusted the standalone…
wileyj 83e43fe
Merge branch 'develop' into chore/6601
aaronb-stacks 1309bca
Merge branch 'develop' into chore/6601
wileyj 52a4727
Updating default stacks-node CMD for release dockerfiles
wileyj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 mainnet"] |
20 changes: 20 additions & 0 deletions
20
.github/actions/dockerfiles/alpine/Dockerfile.release.signer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/ | ||
| CMD ["/bin/stacks-signer run --config /signer-config.toml"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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-node mainnet"] |
19 changes: 19 additions & 0 deletions
19
.github/actions/dockerfiles/debian/Dockerfile.release.signer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.