Skip to content

Commit

Permalink
Merge pull request #101 from theohbrothers/feature/add-go-variants-fo…
Browse files Browse the repository at this point in the history
…r-all-code-server-versions

Feature: Add `go` variants for all `code-server` versions
  • Loading branch information
leojonathanoh authored Sep 27, 2023
2 parents bdedad4 + 05936b5 commit 061c4c2
Show file tree
Hide file tree
Showing 63 changed files with 9,504 additions and 101 deletions.
1,512 changes: 1,426 additions & 86 deletions .github/workflows/ci-master-pr.yml

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,59 @@ Dockerized [`code-server`](https://github.com/coder/code-server).
|:-------:|:---------:|
| `:v4.16.1-alpine-3.15`, `:latest` | [View](variants/v4.16.1-alpine-3.15) |
| `:v4.16.1-docker-alpine-3.15` | [View](variants/v4.16.1-docker-alpine-3.15) |
| `:v4.16.1-docker-go-1.20.8-alpine-3.15` | [View](variants/v4.16.1-docker-go-1.20.8-alpine-3.15) |
| `:v4.16.1-docker-rootless-alpine-3.15` | [View](variants/v4.16.1-docker-rootless-alpine-3.15) |
| `:v4.16.1-docker-rootless-go-1.20.8-alpine-3.15` | [View](variants/v4.16.1-docker-rootless-go-1.20.8-alpine-3.15) |
| `:v4.15.0-alpine-3.15` | [View](variants/v4.15.0-alpine-3.15) |
| `:v4.15.0-docker-alpine-3.15` | [View](variants/v4.15.0-docker-alpine-3.15) |
| `:v4.15.0-docker-go-1.20.8-alpine-3.15` | [View](variants/v4.15.0-docker-go-1.20.8-alpine-3.15) |
| `:v4.15.0-docker-rootless-alpine-3.15` | [View](variants/v4.15.0-docker-rootless-alpine-3.15) |
| `:v4.15.0-docker-rootless-go-1.20.8-alpine-3.15` | [View](variants/v4.15.0-docker-rootless-go-1.20.8-alpine-3.15) |
| `:v4.14.1-alpine-3.15` | [View](variants/v4.14.1-alpine-3.15) |
| `:v4.14.1-docker-alpine-3.15` | [View](variants/v4.14.1-docker-alpine-3.15) |
| `:v4.14.1-docker-go-1.20.8-alpine-3.15` | [View](variants/v4.14.1-docker-go-1.20.8-alpine-3.15) |
| `:v4.14.1-docker-rootless-alpine-3.15` | [View](variants/v4.14.1-docker-rootless-alpine-3.15) |
| `:v4.14.1-docker-rootless-go-1.20.8-alpine-3.15` | [View](variants/v4.14.1-docker-rootless-go-1.20.8-alpine-3.15) |
| `:v4.13.0-alpine-3.15` | [View](variants/v4.13.0-alpine-3.15) |
| `:v4.13.0-docker-alpine-3.15` | [View](variants/v4.13.0-docker-alpine-3.15) |
| `:v4.13.0-docker-go-1.20.8-alpine-3.15` | [View](variants/v4.13.0-docker-go-1.20.8-alpine-3.15) |
| `:v4.13.0-docker-rootless-alpine-3.15` | [View](variants/v4.13.0-docker-rootless-alpine-3.15) |
| `:v4.13.0-docker-rootless-go-1.20.8-alpine-3.15` | [View](variants/v4.13.0-docker-rootless-go-1.20.8-alpine-3.15) |
| `:v4.12.0-alpine-3.15` | [View](variants/v4.12.0-alpine-3.15) |
| `:v4.12.0-docker-alpine-3.15` | [View](variants/v4.12.0-docker-alpine-3.15) |
| `:v4.12.0-docker-go-1.20.8-alpine-3.15` | [View](variants/v4.12.0-docker-go-1.20.8-alpine-3.15) |
| `:v4.12.0-docker-rootless-alpine-3.15` | [View](variants/v4.12.0-docker-rootless-alpine-3.15) |
| `:v4.12.0-docker-rootless-go-1.20.8-alpine-3.15` | [View](variants/v4.12.0-docker-rootless-go-1.20.8-alpine-3.15) |
| `:v4.11.0-alpine-3.15` | [View](variants/v4.11.0-alpine-3.15) |
| `:v4.11.0-docker-alpine-3.15` | [View](variants/v4.11.0-docker-alpine-3.15) |
| `:v4.11.0-docker-go-1.20.8-alpine-3.15` | [View](variants/v4.11.0-docker-go-1.20.8-alpine-3.15) |
| `:v4.11.0-docker-rootless-alpine-3.15` | [View](variants/v4.11.0-docker-rootless-alpine-3.15) |
| `:v4.11.0-docker-rootless-go-1.20.8-alpine-3.15` | [View](variants/v4.11.0-docker-rootless-go-1.20.8-alpine-3.15) |
| `:v4.10.1-alpine-3.15` | [View](variants/v4.10.1-alpine-3.15) |
| `:v4.10.1-docker-alpine-3.15` | [View](variants/v4.10.1-docker-alpine-3.15) |
| `:v4.10.1-docker-go-1.20.8-alpine-3.15` | [View](variants/v4.10.1-docker-go-1.20.8-alpine-3.15) |
| `:v4.10.1-docker-rootless-alpine-3.15` | [View](variants/v4.10.1-docker-rootless-alpine-3.15) |
| `:v4.10.1-docker-rootless-go-1.20.8-alpine-3.15` | [View](variants/v4.10.1-docker-rootless-go-1.20.8-alpine-3.15) |
| `:v4.9.1-alpine-3.15` | [View](variants/v4.9.1-alpine-3.15) |
| `:v4.9.1-docker-alpine-3.15` | [View](variants/v4.9.1-docker-alpine-3.15) |
| `:v4.9.1-docker-go-1.20.8-alpine-3.15` | [View](variants/v4.9.1-docker-go-1.20.8-alpine-3.15) |
| `:v4.9.1-docker-rootless-alpine-3.15` | [View](variants/v4.9.1-docker-rootless-alpine-3.15) |
| `:v4.9.1-docker-rootless-go-1.20.8-alpine-3.15` | [View](variants/v4.9.1-docker-rootless-go-1.20.8-alpine-3.15) |
| `:v4.8.3-alpine-3.15` | [View](variants/v4.8.3-alpine-3.15) |
| `:v4.8.3-docker-alpine-3.15` | [View](variants/v4.8.3-docker-alpine-3.15) |
| `:v4.8.3-docker-go-1.20.8-alpine-3.15` | [View](variants/v4.8.3-docker-go-1.20.8-alpine-3.15) |
| `:v4.8.3-docker-rootless-alpine-3.15` | [View](variants/v4.8.3-docker-rootless-alpine-3.15) |
| `:v4.8.3-docker-rootless-go-1.20.8-alpine-3.15` | [View](variants/v4.8.3-docker-rootless-go-1.20.8-alpine-3.15) |
| `:v4.7.1-alpine-3.15` | [View](variants/v4.7.1-alpine-3.15) |
| `:v4.7.1-docker-alpine-3.15` | [View](variants/v4.7.1-docker-alpine-3.15) |
| `:v4.7.1-docker-go-1.20.8-alpine-3.15` | [View](variants/v4.7.1-docker-go-1.20.8-alpine-3.15) |
| `:v4.7.1-docker-rootless-alpine-3.15` | [View](variants/v4.7.1-docker-rootless-alpine-3.15) |
| `:v4.7.1-docker-rootless-go-1.20.8-alpine-3.15` | [View](variants/v4.7.1-docker-rootless-go-1.20.8-alpine-3.15) |
| `:v4.6.1-alpine-3.15` | [View](variants/v4.6.1-alpine-3.15) |
| `:v4.6.1-docker-alpine-3.15` | [View](variants/v4.6.1-docker-alpine-3.15) |
| `:v4.6.1-docker-go-1.20.8-alpine-3.15` | [View](variants/v4.6.1-docker-go-1.20.8-alpine-3.15) |
| `:v4.6.1-docker-rootless-alpine-3.15` | [View](variants/v4.6.1-docker-rootless-alpine-3.15) |
| `:v4.6.1-docker-rootless-go-1.20.8-alpine-3.15` | [View](variants/v4.6.1-docker-rootless-go-1.20.8-alpine-3.15) |

Base variants include `npm 8` and `nodejs 16` (to run `code-server`), `pwsh`, and basic tools. E.g. `v4.16.1-alpine-3.15`

Expand Down
23 changes: 8 additions & 15 deletions generate/definitions/VARIANTS.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,14 @@ $local:VARIANTS_MATRIX = @(
distro = 'alpine'
distro_version = '3.15'
subvariants = @(
if ($v -eq '4.8.3') {
@{ components = @() }
@{ components = @( 'docker' ) }
# Invoke-RestMethod https://go.dev/dl/?mode=json&include=all
foreach ($v in $local:VERSIONS.go.versions) {
@{ components = @( 'docker', "go-$v" ) }
}
@{ components = @( 'docker-rootless' ) }
foreach ($v in $local:VERSIONS.go.versions) {
@{ components = @( 'docker-rootless', "go-$v" ) }
}
}else {
@{ components = @() }
@{ components = @( 'docker' ) }
@{ components = @( 'docker-rootless' ) }
@{ components = @() }
@{ components = @( 'docker' ) }
foreach ($v in $local:VERSIONS.go.versions) {
@{ components = @( 'docker', "go-$v" ) }
}
@{ components = @( 'docker-rootless' ) }
foreach ($v in $local:VERSIONS.go.versions) {
@{ components = @( 'docker-rootless', "go-$v" ) }
}
)
}
Expand Down
Loading

0 comments on commit 061c4c2

Please sign in to comment.