Skip to content

Commit

Permalink
Debugging github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sepen committed Dec 31, 2024
1 parent d936aa9 commit b5834dd
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,9 @@ jobs:
- name: Build Docker image
run: |
tag_suffix="${{ matrix.version }}-${{ matrix.arch }}-${{ matrix.variant }}"
# Check if tag is a folder exists and not a symlink
if [ -d "$tag_suffix" ] && [ ! -L "$tag_suffix" ]; then
image_folder="${tag_suffix}"
# Get extra tags from symlinks
extra_tags=""
find . -type l -exec basename {} \; | while read symlink; do
Expand All @@ -75,25 +72,19 @@ jobs:
extra_tags="${extra_tags} -t sepen/crux:${symlink}"
fi
done
echo "Building and pushing Docker image: ${image_folder}"
echo "... extra_tags: ${extra_tags}""
# Create and use the buildx builder instance
docker buildx create --use
# Prepare required files
bash prepare-files.sh $tag_suffix || exit 1
# Determine the platform
case "${{ matrix.arch }}" in
"amd64") platform="linux/amd64" ;;
"arm64") platform="linux/arm64" ;;
"armhf") platform="linux/arm/v7" ;;
esac
echo "Platform ${platform} ..."
# Build the image for selected platforms and push it
docker buildx build \
--platform ${platform} \
Expand Down

0 comments on commit b5834dd

Please sign in to comment.