-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Github Action
committed
Jun 24, 2024
1 parent
f4c952a
commit 4813e4f
Showing
5 changed files
with
45 additions
and
6 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,28 @@ | ||
#! /usr/bin/env -S nix shell --command bash | ||
# shellcheck shell=bash | ||
|
||
set -euox pipefail | ||
|
||
git fetch --all | ||
|
||
RELEASE_COMMIT=$(buildkite-agent meta-data get "release-commit") | ||
|
||
git checkout "$RELEASE_COMMIT" | ||
|
||
mkdir -p config | ||
|
||
echo '{ outputs = _: { dockerHubRepoName = "cardanofoundation/cardano-wallet"; }; }' \ | ||
> config/flake.nix | ||
|
||
hostNixpkgs=$(nix eval --impure -I "$NIX_PATH" --expr '(import <nixpkgs> {}).path') | ||
|
||
nix build .#dockerImage | ||
|
||
nix build .#pushDockerImage \ | ||
--override-input hostNixpkgs "$hostNixpkgs" \ | ||
--override-input customConfig path:./config \ | ||
-o docker-build-push | ||
|
||
cat docker-build-push | ||
|
||
./docker-build-push |
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
#! /usr/bin/env -S nix shell --command bash | ||
# shellcheck shell=bash | ||
|
||
RELEASE_CANDIDATE_BRANCH=$(buildkite-agent meta-data get "release-candidate-branch") | ||
set -euox pipefail | ||
|
||
git checkout "$RELEASE_CANDIDATE_BRANCH" | ||
RELEASE_COMMIT=$(buildkite-agent meta-data get "release-commit") | ||
|
||
git checkout "$RELEASE_COMMIT" | ||
|
||
nix build -o result/linux .#ci.artifacts.linux64.release |