Skip to content

🛠 Make automatically recognize new versions - #3

Open
kimlulz wants to merge 20 commits into
martinussuherman:masterfrom
kimlulz:autover
Open

🛠 Make automatically recognize new versions#3
kimlulz wants to merge 20 commits into
martinussuherman:masterfrom
kimlulz:autover

Conversation

@kimlulz

@kimlulz kimlulz commented Jun 18, 2024

Copy link
Copy Markdown
  1. Changed git url
    https://github.com/cdr/code-server -> https://github.com/coder/code-server
  2. Added the process of checking the released latest version using Github API.
    So, It doesn't need to manually modify the version in the dockerfile.
      VERSION=$(curl -sX GET https://api.github.com/repos/coder/code-server/releases/latest \
wget https://github.com/coder/code-server/releases/download/v${VERSION}/code-server-${VERSION}-linux-amd64.tar.gz && \
tar x -zf code-server-${VERSION}-linux-amd64.tar.gz && \

Need to test, but i think it will work properly

@kimlulz

kimlulz commented Jun 18, 2024

Copy link
Copy Markdown
Author

63a0d3f 1dd1670
Changed wget to curl

@martinussuherman

Copy link
Copy Markdown
Owner

Thank you for the PR, please give me some time to try it first, if everything is okay then I'll merge your PR

@kimlulz

kimlulz commented Jun 24, 2024

Copy link
Copy Markdown
Author

Removed commands cuz the structure between latest version and previous version is different...

rm code-server-${VERSION}-linux-{arch}/node && \
rm code-server-${VERSION}-linux-{arch}/code-server && \

image
image

Still occur errors on snyk action, but docker image successfully built and pushed! (used my docker repo for test)

@kimlulz

kimlulz commented Jun 24, 2024

Copy link
Copy Markdown
Author

Test

version: '3'

services:
  code-server:
    image: kimlulz/alpine-code-server:latest
    environment:
      - TZ=Asia/Seoul
      - EUID=1001
      - EGID=1001
    volumes:
      - /data/alpine-code-server/work:/home/vscode
    ports:
      - 1360:8080

image
🤔🤔🤔

@kimlulz

kimlulz commented Jun 24, 2024

Copy link
Copy Markdown
Author

Modified dockerfile refer to https://github.com/marktolson/alpine-code-server

image
IT WORKS!!!

Future plan
  • update readme.md
  • make upload build and push weekly/monthly
  • rework docker-compose.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants