mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
Merge pull request #4996 from nextcloud/enh/noid/remove-latest-tag
update-helm: adjust workflow for new tags syntax
This commit is contained in:
commit
92a711fdef
2 changed files with 2 additions and 3 deletions
3
.github/workflows/update-helm.yml
vendored
3
.github/workflows/update-helm.yml
vendored
|
|
@ -14,8 +14,7 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: update helm chart
|
- name: update helm chart
|
||||||
run: |
|
run: |
|
||||||
DOCKER_TAG="$(curl -L -s 'https://registry.hub.docker.com/v2/repositories/nextcloud/all-in-one/tags?page_size=1024' | jq '."results"[]["name"]' | sed 's|"||g' | grep '^20' | sort -r | head -1)"
|
DOCKER_TAG="$(curl -L -s 'https://registry.hub.docker.com/v2/repositories/nextcloud/all-in-one/tags?page_size=1024' | jq '."results"[]["name"]' | sed 's|"||g' | grep '^20[0-9_]\+' | grep -v latest | sort -r | head -1)"
|
||||||
DOCKER_TAG="${DOCKER_TAG%%-latest*}"
|
|
||||||
export DOCKER_TAG
|
export DOCKER_TAG
|
||||||
if [ -n "$DOCKER_TAG" ] && ! grep -q "$DOCKER_TAG" ./nextcloud-aio-helm-chart/templates/nextcloud-aio-nextcloud-deployment.yaml; then
|
if [ -n "$DOCKER_TAG" ] && ! grep -q "$DOCKER_TAG" ./nextcloud-aio-helm-chart/templates/nextcloud-aio-nextcloud-deployment.yaml; then
|
||||||
sudo bash nextcloud-aio-helm-chart/update-helm.sh "$DOCKER_TAG"
|
sudo bash nextcloud-aio-helm-chart/update-helm.sh "$DOCKER_TAG"
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ sed -i 's|^|export |' /tmp/sample.conf
|
||||||
source /tmp/sample.conf
|
source /tmp/sample.conf
|
||||||
rm /tmp/sample.conf
|
rm /tmp/sample.conf
|
||||||
sed -i '/OVERWRITEHOST/d' latest.yml
|
sed -i '/OVERWRITEHOST/d' latest.yml
|
||||||
sed -i "s|:latest$|:$DOCKER_TAG-latest|" latest.yml
|
sed -i "s|:latest$|:$DOCKER_TAG|" latest.yml
|
||||||
sed -i "s|\${APACHE_IP_BINDING}:||" latest.yml
|
sed -i "s|\${APACHE_IP_BINDING}:||" latest.yml
|
||||||
sed -i '/APACHE_IP_BINDING/d' latest.yml
|
sed -i '/APACHE_IP_BINDING/d' latest.yml
|
||||||
sed -i "s|\${APACHE_PORT}:\${APACHE_PORT}/|$APACHE_PORT:$APACHE_PORT/|" latest.yml
|
sed -i "s|\${APACHE_PORT}:\${APACHE_PORT}/|$APACHE_PORT:$APACHE_PORT/|" latest.yml
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue