Merge branch 'fix/ci-alpine-internal-mirror' into 'main'
fix(ci): apk использует internal Nexus mirror вместо public Alpine CDN See merge request 2-6/2-6-4/terravault/ordinis!227
This commit is contained in:
@@ -100,6 +100,10 @@ commit-msg-lint:
|
|||||||
stage: test
|
stage: test
|
||||||
image: repo.nstart.cloud/library/alpine:3.20
|
image: repo.nstart.cloud/library/alpine:3.20
|
||||||
script:
|
script:
|
||||||
|
# Runner не имеет outbound к dl-cdn.alpinelinux.org (Permission denied) —
|
||||||
|
# переадресуем apk на internal Nexus mirror. Это нужно во всех Alpine
|
||||||
|
# jobs (commit-msg-lint, build-docs ниже, propose-prod-image-bump).
|
||||||
|
- sed -i 's|https://dl-cdn.alpinelinux.org/alpine|https://repo.nstart.cloud/repository/alpine|g' /etc/apk/repositories
|
||||||
- apk add --no-cache git grep
|
- apk add --no-cache git grep
|
||||||
- |
|
- |
|
||||||
set -e
|
set -e
|
||||||
@@ -636,6 +640,8 @@ release:
|
|||||||
echo "═══════════════════════════════════════════════════════════════"
|
echo "═══════════════════════════════════════════════════════════════"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
# Internal Alpine mirror — см. commit-msg-lint выше для контекста.
|
||||||
|
- sed -i 's|https://dl-cdn.alpinelinux.org/alpine|https://repo.nstart.cloud/repository/alpine|g' /etc/apk/repositories
|
||||||
- apk add --no-cache git ca-certificates
|
- apk add --no-cache git ca-certificates
|
||||||
# Configure git remote с токеном для push. CI default remote — HTTPS с
|
# Configure git remote с токеном для push. CI default remote — HTTPS с
|
||||||
# CI_JOB_TOKEN scope, который НЕ может push'ить tags/commits. Переопределяем
|
# CI_JOB_TOKEN scope, который НЕ может push'ить tags/commits. Переопределяем
|
||||||
@@ -737,6 +743,8 @@ propose-prod-image-bump:
|
|||||||
echo "═══════════════════════════════════════════════════════════════"
|
echo "═══════════════════════════════════════════════════════════════"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
# Internal Alpine mirror — см. commit-msg-lint выше для контекста.
|
||||||
|
- sed -i 's|https://dl-cdn.alpinelinux.org/alpine|https://repo.nstart.cloud/repository/alpine|g' /etc/apk/repositories
|
||||||
- apk add --no-cache git curl jq
|
- apk add --no-cache git curl jq
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
|
|||||||
Reference in New Issue
Block a user