Skip to content

Commit

Permalink
ci: changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed Apr 5, 2024
1 parent b95b417 commit 2ebac9b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
fail-fast: false
matrix:
os_name: ["alpine"]
php_version: ["8.1", "8.2"] # , "8.3"
php_type: ["fpm"] # , "cli", "supervisord"
php_version: ["8.1", "8.2", "8.3"]
php_type: ["fpm", "cli", "supervisord"]
builder: [{arch: "amd64", os: "ubuntu-latest"}, {arch: "arm64", os: "ubuntu-latest"}]
runs-on: ${{ matrix.builder.os }}
steps:
Expand Down Expand Up @@ -152,12 +152,14 @@ jobs:
with:
pattern: bake-meta-*
path: /tmp
merge-multiple: true

- name: 📥 Download meta bake definitions
uses: actions/download-artifact@v4
with:
pattern: digests-*
path: /tmp/digests/*
merge-multiple: true

- name: Print downloaded bake meta files
run: |
Expand Down Expand Up @@ -192,9 +194,9 @@ jobs:

- name: Create manifest list and push
run: |
# Debug: List all matching meta files more clearly
# Debug: List all matching meta files
echo "Listing all bake-meta-*.json files for debugging:"
find /tmp -name 'bake-meta-*.json' -exec ls -l {} \;
ls -la /tmp/bake-meta-*.json
# Aggregate all tags from the meta files
TAGS=$(jq -r '.target."docker-metadata-action".tags[]' /tmp/bake-meta-*.json | sort -u)
Expand All @@ -204,7 +206,11 @@ jobs:
for TAG in $TAGS; do
echo "Processing tag: $TAG"
FULL_TAGS=()
for FILE in $(find /tmp -name 'bake-meta-*.json'); do
for FILE in /tmp/bake-meta-*.json; do
if [ -d "$FILE" ]; then
echo "$FILE is a directory, skipping..."
continue
fi
if jq -e --arg TAG "$TAG" '.target."docker-metadata-action".tags[] | select(. == $TAG)' $FILE > /dev/null; then
# Extract the repository and digest for the current platform
REPO=$(jq -r --arg TAG "$TAG" '.target."docker-metadata-action".tags[] | select(. == $TAG)' $FILE | cut -d':' -f1)
Expand Down

0 comments on commit 2ebac9b

Please sign in to comment.