Skip to content

Commit

Permalink
fix: trigger release for final pipeline evaluation on main
Browse files Browse the repository at this point in the history
  • Loading branch information
NickChecan committed Oct 13, 2024
1 parent cacf7bf commit 7d3301e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail

# Build a docker image
# Arguments:
# - devcontainer image name
# - variant for the upstream image
create_image() {
local IMAGE=$1
local VARIANT=$2
Expand Down Expand Up @@ -43,6 +47,7 @@ create_image() {
echo "Build process complete for image: $IMAGE, variant: $VARIANT."
}

# Create the file variant-matrix.json with the images and its versions
create_variant_matrix() {
local VARIANT_MATRIX_FILE="dist/variant-matrix.json"
local IMAGE VARIANT IMAGES VARIANTS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"build": {
"dockerfile": "Dockerfile",
"args": {
// The variant arg will be replaced by the versions in the variants.json file during the build process
"VARIANT": "__VARIANT__"
}
},
Expand Down
5 changes: 5 additions & 0 deletions test/test-utils/harness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ setup() {
npx devcontainer up --workspace-folder "$TEST_DIR" --id-label "$ID_LABEL"
}

# Run test and evaluate result
# Arguments:
# - test description
# - command to be executed
# - expected result
run_test() {
local description=$1
local cmd=$2
Expand Down

0 comments on commit 7d3301e

Please sign in to comment.