Alpine: set repo to use image.release instead of latest-stable
This commit is contained in:
@@ -550,8 +550,8 @@ packages:
|
||||
- name: /etc/apk/repositories
|
||||
url: |-
|
||||
#StartREPOS
|
||||
http://192.168.200.20/alpine//latest-stable/main
|
||||
http://192.168.200.20/alpine/latest-stable/community
|
||||
http://192.168.200.20/alpine//v{{ image.release }}/main
|
||||
http://192.168.200.20/alpine/v{{ image.release }}/community
|
||||
#EndREPOS
|
||||
{% if image.variant == "ddns" %}@TestingEdge http://dl-4.alpinelinux.org/alpine/edge/testing{% endif %}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ sed -i -e '/#InitDownloadREPO/a \ url: '$AlpineRepo'' CT-Build/Alpine.yaml
|
||||
|
||||
#AlpineRepo
|
||||
sed -i -n '/#StartREPOS/{:a;N;/#EndREPOS/!ba;N;s/.*\n/#HereREPO\n/};p' CT-Build/Alpine.yaml
|
||||
sed -i -e 's#\#HereREPO#\ \#StartREPOS\n\ '$AlpineRepo/latest-stable/main'\n\ '$AlpineRepo'latest-stable/community\n\ \#EndREPOS#g' CT-Build/Alpine.yaml
|
||||
sed -i -e 's#\#HereREPO#\ \#StartREPOS\n\ '$AlpineRepo'/v{{ image.release }}/main\n\ '$AlpineRepo'v{{ image.release }}/community\n\ \#EndREPOS#g' CT-Build/Alpine.yaml
|
||||
|
||||
#DebianBaseRepo
|
||||
sed -i -e '/#InitDownloadREPO/{n;d}' CT-Build/Debian.yaml
|
||||
|
||||
Reference in New Issue
Block a user