Skip to content

Commit

Permalink
fix: location of the image content for the build
Browse files Browse the repository at this point in the history
  • Loading branch information
NickChecan committed Oct 11, 2024
1 parent 61d5cc0 commit 62b47cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
template_dirs: ${{ steps.get-dirs.outputs.dirs }}
# template_variants: ${{ steps.get-variants.outputs.variants }}
steps:

- name: Checkout
Expand All @@ -25,6 +26,12 @@ jobs:
- name: Get list of test directories
id: get-dirs
run: echo "dirs=$(ls -d test/*/ | grep -v 'test/test-utils/' | jq -R -s -c 'split("\n")[:-1] | map(split("/")[1])')" >> $GITHUB_OUTPUT

# - name: Get list of variants for an image
# id: get-variants
# run: |
# variants=$(cat variants.json)
# echo "variants=${variants}" >> $GITHUB_ENV

test:
name: Run test on images
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rm -rf "$TARGET_DIR"
mkdir -p "$TARGET_DIR"

# Copy content from the source directory to the build directory for further processing
cp -R "$SRC_DIR"/../../src/"$TEMPLATE"/. "$TARGET_DIR"
cp -R "$SRC_DIR"/../src/"$TEMPLATE"/. "$TARGET_DIR"

# Simulate a --build-args behavior by replacing the image variant
# with the version provided by github actions.
Expand Down

0 comments on commit 62b47cd

Please sign in to comment.