forked from shadowproject/shadow
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from aliascash/debianBullseye
Added build for Debian Bullseye
- Loading branch information
Showing
5 changed files
with
87 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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,64 @@ | ||
# SPDX-FileCopyrightText: © 2021 Alias Developers | ||
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
### At first perform source build ### | ||
FROM aliascash/alias-wallet-builder-debian-bullseye:2.7 as build | ||
MAINTAINER HLXEasy <[email protected]> | ||
|
||
# Build parameters | ||
ARG BUILD_THREADS="6" | ||
|
||
# Runtime parameters | ||
ENV BUILD_THREADS=$BUILD_THREADS | ||
|
||
COPY . /alias-wallet | ||
|
||
RUN cd /alias-wallet \ | ||
&& ./scripts/cmake-build.sh -g -o -s -c ${BUILD_THREADS} \ | ||
&& strip /alias-wallet/cmake-build-cmdline/aliaswallet/src/aliaswalletd \ | ||
&& strip /alias-wallet/cmake-build-cmdline/aliaswallet/src/aliaswallet | ||
|
||
### Now upload binaries to GitHub ### | ||
FROM aliascash/github-uploader:latest | ||
MAINTAINER HLXEasy <[email protected]> | ||
|
||
ARG GITHUB_CI_TOKEN=1234567 | ||
ARG ALIAS_RELEASE=latest | ||
ARG ALIAS_REPOSITORY=alias-wallet | ||
ARG GIT_COMMIT=unknown | ||
ARG REPLACE_EXISTING_ARCHIVE='' | ||
#ENV GITHUB_CI_TOKEN=${GITHUB_CI_TOKEN} | ||
ENV ARCHIVE=Alias-${ALIAS_RELEASE}-${GIT_COMMIT}-Debian-Bullseye.tgz | ||
ENV ARCHIVE_CHKSUM=Alias-${ALIAS_RELEASE}-${GIT_COMMIT}-Debian-Bullseye.sha256 | ||
ENV CHKSUM_FILE=Checksum-Alias-Debian-Bullseye.txt | ||
|
||
RUN mkdir -p /filesToUpload/usr/local/bin | ||
|
||
COPY --from=build /alias-wallet/cmake-build-cmdline/aliaswallet/src/aliaswalletd /filesToUpload/usr/local/bin/aliaswalletd | ||
COPY --from=build /alias-wallet/cmake-build-cmdline/aliaswallet/src/aliaswallet /filesToUpload/usr/local/bin/aliaswallet | ||
COPY --from=build /alias-wallet/scripts/createChecksums.sh /tmp/ | ||
|
||
RUN cd /filesToUpload \ | ||
&& tar czf ${ARCHIVE} . \ | ||
&& github-release upload \ | ||
--user aliascash \ | ||
--security-token "${GITHUB_CI_TOKEN}" \ | ||
--repo "${ALIAS_REPOSITORY}" \ | ||
--tag "${ALIAS_RELEASE}" \ | ||
--name "${ARCHIVE}" \ | ||
--file "/filesToUpload/${ARCHIVE}" \ | ||
${REPLACE_EXISTING_ARCHIVE} \ | ||
&& sha256sum /filesToUpload/${ARCHIVE} | awk '{ print $1 }' > /filesToUpload/${ARCHIVE_CHKSUM} \ | ||
&& cat /filesToUpload/${ARCHIVE_CHKSUM} \ | ||
&& github-release upload \ | ||
--user aliascash \ | ||
--security-token "${GITHUB_CI_TOKEN}" \ | ||
--repo "${ALIAS_REPOSITORY}" \ | ||
--tag "${ALIAS_RELEASE}" \ | ||
--name "${ARCHIVE_CHKSUM}" \ | ||
--file "/filesToUpload/${ARCHIVE_CHKSUM}" \ | ||
${REPLACE_EXISTING_ARCHIVE} \ | ||
&& chmod +x /tmp/createChecksums.sh \ | ||
&& sh /tmp/createChecksums.sh /filesToUpload/${ARCHIVE} ${CHKSUM_FILE} \ | ||
&& export GITHUB_CI_TOKEN=--- |
This file contains 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 @@ | ||
# SPDX-FileCopyrightText: © 2021 Alias Developers | ||
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
### At first perform source build ### | ||
FROM aliascash/alias-wallet-builder-debian-bullseye:2.7 | ||
MAINTAINER HLXEasy <[email protected]> | ||
|
||
# Build parameters | ||
ARG BUILD_THREADS="6" | ||
|
||
# Runtime parameters | ||
ENV BUILD_THREADS=$BUILD_THREADS | ||
|
||
COPY . /alias-wallet | ||
|
||
RUN cd /alias-wallet \ | ||
&& ./scripts/cmake-build.sh -g -o -s -c ${BUILD_THREADS} \ | ||
&& strip /alias-wallet/cmake-build-cmdline/aliaswallet/src/aliaswalletd \ | ||
&& strip /alias-wallet/cmake-build-cmdline/aliaswallet/src/aliaswallet |