diff --git a/.github/workflows/check-dependencies.yml b/.github/workflows/check-dependencies.yml index 069e362..68f891a 100644 --- a/.github/workflows/check-dependencies.yml +++ b/.github/workflows/check-dependencies.yml @@ -48,7 +48,7 @@ jobs: if [ "$CODE_SERVER_VERSION" != "$LATEST_CODE_SERVER_VERSION" ]; then echo "Code Server update available!" # Update Code Server version in Dockerfile - sed -i "s/FROM lscr.io\/linuxserver\/code-server:$CODE_SERVER_VERSION/FROM lscr.io\/linuxserver\/code-server:$LATEST_CODE_SERVER_VERSION/" ./code-server/Dockerfile + sed -i "s/FROM linuxserver\/code-server:$CODE_SERVER_VERSION/FROM linuxserver\/code-server:$LATEST_CODE_SERVER_VERSION/" ./code-server/Dockerfile fi if [ "$CODE_SERVER_VERSION" != "$LATEST_CODE_SERVER_VERSION" ]; then @@ -57,6 +57,11 @@ jobs: sed -i "s/version: $CODE_SERVER_VERSION/version: $LATEST_CODE_SERVER_VERSION/" balena.yml fi + if [ "$CODE_SERVER_VERSION" != "$LATEST_CODE_SERVER_VERSION" ]; then + echo "Updating version in README.md" + sed -i "s/\(code-server Docker image. (v\)\([^ ]*\)\(.*\))/\1$LATEST_CODE_SERVER_VERSION\3/" README.md + fi + - name: Create branch, commit, and push changes run: | # Get the current commit hash diff --git a/code-server/Dockerfile b/code-server/Dockerfile index fc2c1f5..c9a6b1a 100644 --- a/code-server/Dockerfile +++ b/code-server/Dockerfile @@ -2,7 +2,7 @@ # Sam Dennon//2023 # Base Image -FROM lscr.io/linuxserver/code-server:4.19.1-ls186 +FROM linuxserver/code-server:4.19.1-ls186 # Versions ENV BALENA_CLI_VERSION=v17.4.6