Skip to content

Commit

Permalink
Updated to pull from Docker Hub and also change the version number in…
Browse files Browse the repository at this point in the history
… the README (#69)
  • Loading branch information
SamEureka authored Dec 18, 2023
1 parent 50f0657 commit 5d07150
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/check-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion code-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d07150

Please sign in to comment.