From 64179b61503c20c650b94a80c7a82922a7c08e80 Mon Sep 17 00:00:00 2001 From: Pedro Maximino Date: Tue, 6 Aug 2024 15:53:07 +0200 Subject: [PATCH] ci: Use correct sed command to bump version of jupyter images The version of the image is not attached to it. Instead, if it specified in the line right below, both for the system user and jupyterhub images --- .github/workflows/update-images.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-images.yaml b/.github/workflows/update-images.yaml index 624296e..f45b4d0 100644 --- a/.github/workflows/update-images.yaml +++ b/.github/workflows/update-images.yaml @@ -21,10 +21,10 @@ jobs: - name: Update images version run: | - echo "Updating information for image = ${{ github.event.inputs.image }} version = ${{ github.event.inputs.version }}" export IMAGE_NAME=${{ github.event.inputs.image }} - export IMAGE_VERSION=$(echo ${{ github.event.inputs.version }} | sed -e "s/v//g") - sed -i "s|\(gitlab-registry.cern.ch/swan/docker-images/$IMAGE_NAME:\)[^ ]*|\1$IMAGE_VERSION|" swan/values.yaml + export IMAGE_VERSION=${{ github.event.inputs.version }} + echo "Updating information for image = $IMAGE_NAME version = $IMAGE_VERSION" + sed -i "\|gitlab-registry.cern.ch/swan/docker-images/$IMAGE_NAME|!b;n;s|tag: .*|tag: $IMAGE_VERSION|" swan/values.yaml - name: Create Pull Request id: cpr uses: peter-evans/create-pull-request@v6