Skip to content

Commit

Permalink
Fix workaround for alpine-release pkg for latest-stable after v3.17
Browse files Browse the repository at this point in the history
Fixes #5
  • Loading branch information
jirutka committed Nov 25, 2022
1 parent aac9b11 commit dbc94f1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions setup-alpine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,9 @@ done

cat /etc/resolv.conf > etc/resolv.conf

release_pkg=''
# TODO: Add latest-stable after v3.17 is released.
if [ "$INPUT_BRANCH" = 'edge' ] || [ "$($APK version -t "$INPUT_BRANCH" 'v3.16')" = '>' ]; then
release_pkg='alpine-release'
release_pkg='alpine-release'
if [ "${INPUT_BRANCH#v}" != "$INPUT_BRANCH" ] && [ "$($APK version -t "$INPUT_BRANCH" 'v3.17')" = '<' ]; then
release_pkg=''
fi

info "Installing base packages into $(pwd)"
Expand Down

0 comments on commit dbc94f1

Please sign in to comment.