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 1462210 commit b493274
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,7 @@ jobs:
echo ">>> Image_folder: ${image_folder}"
# Get extra tags from symlinks
export extra_tags
find . -type l -exec basename {} \; | while read symlink; do
target=$(readlink -f $symlink)
target=$(basename $target)
case "${target}" in
"${tag_suffix}") extra_tags="${extra_tags} -t sepen/crux:${symlink}" ;;
esac
done
extra_tags=$(bash get-tag-aliases.sh)
echo ">>> Extra_tags: ${extra_tags}"
# Create and use the buildx builder instance
Expand Down
17 changes: 17 additions & 0 deletions get-tag-aliases.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash -e

readonly BASE_DIR=$(cd $(dirname $0) && pwd)

if [ $# -ne 1 ]; then
echo "Usage: $(basename $0) FOLDER"
exit 0
fi
FOLDER="$1"

# Get extra tags from symlinks
find $BASE_DIR -type l -exec basename {} \; | while read symlink; do
target_dir=$(basename $(readlink -f $symlink))
case ${target_dir} in
${FOLDER}) echo -ne "-t sepen/crux:${symlink}" ;;
esac
done

0 comments on commit b493274

Please sign in to comment.