-
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
234 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,6 @@ indent_size = 2 | |
|
||
[*.md] | ||
indent_size = 2 | ||
|
||
[*.yml] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
name: Clangd LS Image | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'clangd-example' | ||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
REPO_NAME: ${{ github.repository }} | ||
PATH_CONTEXT: ./packages/examples/resources/clangd | ||
CONTAINER_NAME_CONFIGURE: clangd-wasm-configure | ||
CONTAINER_NAME_BUILD: clangd-wasm-build | ||
|
||
jobs: | ||
images-clangd-wasm: | ||
name: Build & Deploy Clangd LS | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
attestations: write | ||
id-token: write | ||
|
||
timeout-minutes: 90 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (configure) | ||
id: meta_configure | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: | | ||
${{ env.REGISTRY }}/${{ env.REPO_NAME }}/${{ env.CONTAINER_NAME_CONFIGURE }} | ||
# enforce latest tag for now | ||
tags: | | ||
type=raw,value=latest | ||
- name: Build & Push (configure) | ||
id: push_configure | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: ${{ env.PATH_CONTEXT }} | ||
file: ${{ env.PATH_CONTEXT }}/configure.Dockerfile | ||
push: true | ||
tags: ${{ steps.meta_configure.outputs.tags }} | ||
labels: ${{ steps.meta_configure.outputs.labels }} | ||
|
||
- name: Attest (configure) | ||
uses: actions/attest-build-provenance@v1 | ||
with: | ||
subject-name: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}/${{ env.CONTAINER_NAME_CONFIGURE }} | ||
subject-digest: ${{ steps.push_configure.outputs.digest }} | ||
push-to-registry: true | ||
|
||
- name: Extract metadata (build) | ||
id: meta_build | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: | | ||
${{ env.REGISTRY }}/${{ env.REPO_NAME }}/${{ env.CONTAINER_NAME_BUILD }} | ||
# enforce latest tag for now | ||
tags: | | ||
type=raw,value=latest | ||
- name: Build & Push (build) | ||
id: push_build | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: ${{ env.PATH_CONTEXT }} | ||
file: ${{ env.PATH_CONTEXT }}/build.Dockerfile | ||
push: true | ||
tags: ${{ steps.meta_build.outputs.tags }} | ||
labels: ${{ steps.meta_build.outputs.labels }} | ||
|
||
- name: Attest (build) | ||
uses: actions/attest-build-provenance@v1 | ||
with: | ||
subject-name: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}/${{ env.CONTAINER_NAME_BUILD }} | ||
subject-digest: ${{ steps.push_build.outputs.digest }} | ||
push-to-registry: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Eclipse JDT LS Image | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'clangd-example' | ||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
REPO_NAME: ${{ github.repository }} | ||
CONTAINER_NAME: eclipse.jdt.ls | ||
|
||
jobs: | ||
image-eclipsejdtls: | ||
name: Build & Deploy Eclipse JDT LS | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
attestations: write | ||
id-token: write | ||
|
||
timeout-minutes: 15 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: | | ||
${{ env.REGISTRY }}/${{ env.REPO_NAME }}/${{ env.CONTAINER_NAME }} | ||
# enforce latest tag for now | ||
tags: | | ||
type=raw,value=latest | ||
- name: Build & Push | ||
id: push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
file: ./packages/examples/resources/${{ env.CONTAINER_NAME }}/Dockerfile | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
- name: Attest | ||
uses: actions/attest-build-provenance@v1 | ||
with: | ||
subject-name: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}/${{ env.CONTAINER_NAME }} | ||
subject-digest: ${{ steps.push.outputs.digest }} | ||
push-to-registry: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Groovy LS Image | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'clangd-example' | ||
workflow_dispatch: | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
REPO_NAME: ${{ github.repository }} | ||
CONTAINER_NAME: groovy.ls | ||
|
||
jobs: | ||
image-groovyls: | ||
name: Build & Deploy Groovy LS | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
attestations: write | ||
id-token: write | ||
|
||
timeout-minutes: 15 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: | | ||
${{ env.REGISTRY }}/${{ env.REPO_NAME }}/${{ env.CONTAINER_NAME }} | ||
# enforce latest tag for now | ||
tags: | | ||
type=raw,value=latest | ||
- name: Build & Push | ||
id: push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
file: ./packages/examples/resources/${{ env.CONTAINER_NAME }}/Dockerfile | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
- name: Attest | ||
uses: actions/attest-build-provenance@v1 | ||
with: | ||
subject-name: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}/${{ env.CONTAINER_NAME }} | ||
subject-digest: ${{ steps.push.outputs.digest }} | ||
push-to-registry: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM clangd-clangd-configure | ||
FROM ghcr.io/typefox/monaco-languageclient/clangd-wasm-configure:latest | ||
|
||
COPY build-docker.sh /builder/build-docker.sh | ||
COPY wait_stdin.patch /builder/wait_stdin.patch | ||
|
||
RUN (cd /builder; ./build-docker.sh) | ||
RUN (cd /builder; bash ./build-docker.sh) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
services: | ||
clangd-build: | ||
clangd-wasm-build: | ||
image: ghcr.io/typefox/monaco-languageclient/clangd-wasm-build:latest | ||
build: | ||
dockerfile: ./build.Dockerfile | ||
context: . | ||
# only linux/amd64 for now | ||
platforms: | ||
- "linux/amd64" | ||
platform: linux/amd64 | ||
container_name: clangd-build | ||
container_name: clangd-wasm-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
packages/examples/resources/clangd/configure.docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
services: | ||
clangd-configure: | ||
clangd-wasm-configure: | ||
image: ghcr.io/typefox/monaco-languageclient/clangd-wasm-configure:latest | ||
build: | ||
dockerfile: ./configure.Dockerfile | ||
context: . | ||
# only linux/amd64 for now | ||
platforms: | ||
- "linux/amd64" | ||
platform: linux/amd64 | ||
container_name: clangd-configure | ||
container_name: clangd-wasm-configure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters