Skip to content

Commit

Permalink
Add "Docker compose smoke test" step
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Action committed Jun 24, 2024
1 parent 3cdba04 commit bb3203d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .buildkite/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ steps:
agents:
system: x86_64-linux

- label: 'Smoke test docker-compose'
depends_on:
- build-docker
- refresh-node-state
commands:
- ./scripts/buildkite/release/docker-smoke-test.sh
artifact_paths:
- "./logs/**/*"
agents:
system: x86_64-linux

- label: 'Run linux e2e tests'
depends_on:
- add-release-commits
Expand Down
14 changes: 14 additions & 0 deletions scripts/buildkite/release/docker-smoke-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#! /usr/bin/env -S nix shell 'nixpkgs#docker-compose' --command bash
# shellcheck shell=bash

export NETWORK=testnet
export WALLET_TAG=$(buildkite-agent meta-data get "release-version")
export NODE_TAG="8.9.3"
export NODE_DB="$(pwd)/ignore-me"
export WALLET_DB="$(pwd)/ignore-me"
export WALLET_PORT=8090

docker-compose up -d
mkdir -p logs
docker-compose logs > logs/docker-compose.log
docker-compose down

0 comments on commit bb3203d

Please sign in to comment.