fix(ci): changed the way of setting mirrors of apk
Some checks failed
CI / build-and-publish (push) Failing after 1m6s
Some checks failed
CI / build-and-publish (push) Failing after 1m6s
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -19,7 +19,9 @@ jobs:
|
|||||||
ALPINE_MIRROR: ${{ secrets.ALPINE_MIRROR }}
|
ALPINE_MIRROR: ${{ secrets.ALPINE_MIRROR }}
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
echo "$ALPINE_MIRROR" > /etc/apk/repositories
|
ALPINE_VERSION=$(cat /etc/alpine-release | cut -d'.' -f1-2) && \
|
||||||
|
echo "${ALPINE_MIRROR}v${ALPINE_VERSION}/main" > /etc/apk/repositories && \
|
||||||
|
echo "${ALPINE_MIRROR}v${ALPINE_VERSION}/community" >> /etc/apk/repositories
|
||||||
apk update
|
apk update
|
||||||
apk add --no-cache git
|
apk add --no-cache git
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user