Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit 128d47d

Browse files
committed
WIP: trying to figure out jq targeting in GitHub workflow
1 parent bdcc4d0 commit 128d47d

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/build-images.yaml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,27 @@ jobs:
2424
- name: Checkout Repo
2525
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2626

27+
- name: Display directory structure and find config.json
28+
run: |
29+
echo "Directory structure:"
30+
tree ${{ github.workspace }}
31+
32+
echo -e "\nSearching for config.json:"
33+
CONFIG_PATH=$(find ${{ github.workspace }} -name config.json)
34+
if [ -z "$CONFIG_PATH" ]; then
35+
echo "Error: config.json not found"
36+
exit 1
37+
fi
38+
echo "Config file found at: $CONFIG_PATH"
39+
echo "CONFIG_PATH=$CONFIG_PATH" >> $GITHUB_ENV
40+
2741
- name: Read tags from config
2842
id: read_tags
2943
run: |
3044
echo "K3S_TAG=$(jq -r .k3s_tag packages/k3d-gpu/config.json)" >> $GITHUB_ENV
3145
echo "CUDA_TAG=$(jq -r .cuda_tag packages/k3d-gpu/config.json)" >> $GITHUB_ENV
3246
33-
- name: Display directory structure and find config.json
34-
run: |
35-
echo "Directory structure:"
36-
tree ${{ github.workspace }}
37-
38-
echo -e "\nSearching for config.json:"
39-
CONFIG_PATH=$(find ${{ github.workspace }} -name config.json)
40-
if [ -z "$CONFIG_PATH" ]; then
41-
echo "Error: config.json not found"
42-
exit 1
43-
fi
44-
echo "Config file found at: $CONFIG_PATH"
45-
echo "CONFIG_PATH=$CONFIG_PATH" >> $GITHUB_ENV
47+
4648
4749
- name: Login to GitHub Container Registry
4850
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0

0 commit comments

Comments
 (0)