Skip to content

Commit ad01029

Browse files
committed
ci: update os deps with dagger
Signed-off-by: Gabriele Fedi <gabriele.fedi@enterprisedb.com>
1 parent 76abd1a commit ad01029

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

.github/workflows/update_os_libraries.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,17 @@ jobs:
2323
with:
2424
persist-credentials: false
2525

26+
- name: Install Dagger
27+
env:
28+
# renovate: datasource=github-tags depName=dagger/dagger versioning=semver
29+
DAGGER_VERSION: 0.19.7
30+
run: |
31+
curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh
32+
2633
- name: Fetch extensions
2734
id: get-extensions
2835
run: |
29-
EXTENSIONS=()
30-
all_extensions=$(find . -type f -name metadata.hcl -exec dirname {} \; | sed 's|^\./||')
31-
for e in ${all_extensions}; do
32-
AUTO_UPDATE_OS_LIBS=$(sed -n 's/.*auto_update_os_libs *= *//p' "$e/metadata.hcl")
33-
if [[ $AUTO_UPDATE_OS_LIBS == "true" ]]; then
34-
EXTENSIONS+=("$e")
35-
fi
36-
done
37-
EXTENSIONS_JSON=$(printf "%s\n" "${EXTENSIONS[@]}" | jq -R -s -c 'split("\n")[:-1]')
36+
EXTENSIONS_JSON=$(dagger call -m ./dagger/maintenance/ update-oslibs-targets)
3837
echo "extensions=$EXTENSIONS_JSON" >> $GITHUB_OUTPUT
3938
4039
update-extension-os-libs:
@@ -57,10 +56,9 @@ jobs:
5756
password: ${{ secrets.GITHUB_TOKEN }}
5857

5958
- name: Update OS libs for ${{ matrix.extension }}
60-
env:
61-
EXTENSION_NAME: ${{ matrix.extension }}
6259
run: |
63-
make update-os-libs-$EXTENSION_NAME
60+
dagger call -m ./dagger/maintenance/ update-oslibs --target ${{ matrix.extension }} \
61+
export --path .
6462
6563
- name: Diff
6664
run: |

0 commit comments

Comments
 (0)