Alpine: set repo to use image.release instead of latest-stable

This commit is contained in:
2021-11-24 16:06:28 +01:00
parent 813be5e1c7
commit a998878f87
2 changed files with 3 additions and 3 deletions

View File

@@ -550,8 +550,8 @@ packages:
- name: /etc/apk/repositories - name: /etc/apk/repositories
url: |- url: |-
#StartREPOS #StartREPOS
http://192.168.200.20/alpine//latest-stable/main http://192.168.200.20/alpine//v{{ image.release }}/main
http://192.168.200.20/alpine/latest-stable/community http://192.168.200.20/alpine/v{{ image.release }}/community
#EndREPOS #EndREPOS
{% if image.variant == "ddns" %}@TestingEdge http://dl-4.alpinelinux.org/alpine/edge/testing{% endif %} {% if image.variant == "ddns" %}@TestingEdge http://dl-4.alpinelinux.org/alpine/edge/testing{% endif %}

View File

@@ -53,7 +53,7 @@ sed -i -e '/#InitDownloadREPO/a \ url: '$AlpineRepo'' CT-Build/Alpine.yaml
#AlpineRepo #AlpineRepo
sed -i -n '/#StartREPOS/{:a;N;/#EndREPOS/!ba;N;s/.*\n/#HereREPO\n/};p' CT-Build/Alpine.yaml 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 #DebianBaseRepo
sed -i -e '/#InitDownloadREPO/{n;d}' CT-Build/Debian.yaml sed -i -e '/#InitDownloadREPO/{n;d}' CT-Build/Debian.yaml