-
Notifications
You must be signed in to change notification settings - Fork 44
ci: prebuild dev containers #2184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
e81ab18
ci: prebuild dev containers
shumkov 9ebc8a2
build: rename files
shumkov e2cf64e
ci: update dev container file
shumkov 2de894b
refactor: remove trailing comma
shumkov a9c1535
refactor: remove duplicate extension
shumkov 1bd45ea
refactor: explicit image tag
shumkov d23c7fd
build: add version tag
shumkov 2f169f8
ci: stop previous runs
shumkov 5156cc8
ci: add more files
shumkov df9a352
ci: update job and step names
shumkov 91ee717
ci: switch to self-hosted runner
shumkov 8d64d38
ci: add timeout just in case
shumkov 79916fd
ci: switch to PAT
shumkov d412e6a
ci: add nodejs
shumkov 10fa6e8
ci: set up skopeo
shumkov 7f542ab
ci: change to latest
shumkov 03483c2
ci: change to latest
shumkov 75a063c
Merge remote-tracking branch 'origin/shumkov/prebuild-dev-containers'…
shumkov 4f539de
ci: change to v0.1.3
shumkov 3b34bd2
ci: install skopeo
shumkov 8667342
ci: fix push setting
shumkov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,73 @@ | ||
| { | ||
| "name": "Dash Platform Dev Container", | ||
| "build": { | ||
| "dockerfile": "Dockerfile", | ||
| "context": ".." | ||
| }, | ||
| "customizations": { | ||
| "vscode": { | ||
| "settings": {}, | ||
| "extensions": [ | ||
| "arcanis.vscode-zipfs", | ||
| "chrmarti.regex", | ||
| "davidanson.vscode-markdownlint", | ||
| "ms-vscode.cmake-tools", | ||
| "dbaeumer.vscode-eslint", | ||
| "esbenp.prettier-vscode", | ||
| "vadimcn.vscode-lldb", | ||
| "rust-lang.rust-analyzer", | ||
| "tamasfe.even-better-toml", | ||
| "zhangyue.rust-mod-generator", | ||
| "ms-azuretools.vscode-docker" | ||
| ] | ||
| } | ||
| }, | ||
| "remoteUser": "vscode", | ||
| "mounts": [ | ||
| { | ||
| "source": "devcontainer-platform-cargo-registry-index-${devcontainerId}", | ||
| "target": "/home/vscode/.cargo/registry", | ||
| "type": "volume" | ||
| }, | ||
| { | ||
| "source": "devcontainer-platform-cargo-registry-cache-${devcontainerId}", | ||
| "target": "/home/vscode/.cargo/registry/cache", | ||
| "type": "volume" | ||
| }, | ||
| { | ||
| "source": "devcontainer-platform-cargo-git-db-${devcontainerId}", | ||
| "target": "/home/vscode/.cargo/git/db", | ||
| "type": "volume" | ||
| }, | ||
| { | ||
| "source": "devcontainer-platform-target-${devcontainerId}", | ||
| "target": "${containerWorkspaceFolder}/target", | ||
| "type": "volume" | ||
| } | ||
| ], | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/common-utils:2": { | ||
| "installZsh": "true", | ||
| "username": "vscode", | ||
| "userUid": "1000", | ||
| "userGid": "1000", | ||
| "upgradePackages": "true" | ||
| }, | ||
| "ghcr.io/devcontainers/features/git:1": { | ||
| "version": "latest", | ||
| "ppa": "false" | ||
| }, | ||
| "ghcr.io/devcontainers/features/github-cli:1": {}, | ||
| "ghcr.io/devcontainers/features/node:1": { | ||
| "version": 20, | ||
| "installYarnUsingApt": false | ||
| }, | ||
| "ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {}, | ||
| "ghcr.io/devcontainers/features/docker-in-docker:2": {}, | ||
| "ghcr.io/schlich/devcontainer-features/starship:0": {}, | ||
| }, | ||
| "postCreateCommand": { | ||
| "git-safe": "git config --global --add safe.directory ${containerWorkspaceFolder}", | ||
| "cargo-permissions": "sudo chown -R vscode:vscode /home/vscode/.cargo ${containerWorkspaceFolder}/target" | ||
| } | ||
| } |
This file contains hidden or 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,74 +1,4 @@ | ||
| { | ||
| "name": "Dash Platform Dev Container", | ||
| "build": { | ||
| "dockerfile": "Dockerfile", | ||
| "context": ".." | ||
| }, | ||
| "customizations": { | ||
| "vscode": { | ||
| "settings": {}, | ||
| "extensions": [ | ||
| "arcanis.vscode-zipfs", | ||
| "chrmarti.regex", | ||
| "davidanson.vscode-markdownlint", | ||
| "arcanis.vscode-zipfs", | ||
| "ms-vscode.cmake-tools", | ||
| "dbaeumer.vscode-eslint", | ||
| "esbenp.prettier-vscode", | ||
| "vadimcn.vscode-lldb", | ||
| "rust-lang.rust-analyzer", | ||
| "tamasfe.even-better-toml", | ||
| "zhangyue.rust-mod-generator", | ||
| "ms-azuretools.vscode-docker" | ||
| ] | ||
| } | ||
| }, | ||
| "remoteUser": "vscode", | ||
| "mounts": [ | ||
| { | ||
| "source": "devcontainer-platform-cargo-registry-index-${devcontainerId}", | ||
| "target": "/home/vscode/.cargo/registry", | ||
| "type": "volume" | ||
| }, | ||
| { | ||
| "source": "devcontainer-platform-cargo-registry-cache-${devcontainerId}", | ||
| "target": "/home/vscode/.cargo/registry/cache", | ||
| "type": "volume" | ||
| }, | ||
| { | ||
| "source": "devcontainer-platform-cargo-git-db-${devcontainerId}", | ||
| "target": "/home/vscode/.cargo/git/db", | ||
| "type": "volume" | ||
| }, | ||
| { | ||
| "source": "devcontainer-platform-target-${devcontainerId}", | ||
| "target": "${containerWorkspaceFolder}/target", | ||
| "type": "volume" | ||
| } | ||
| ], | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/common-utils:2": { | ||
| "installZsh": "true", | ||
| "username": "vscode", | ||
| "userUid": "1000", | ||
| "userGid": "1000", | ||
| "upgradePackages": "true" | ||
| }, | ||
| "ghcr.io/devcontainers/features/git:1": { | ||
| "version": "latest", | ||
| "ppa": "false" | ||
| }, | ||
| "ghcr.io/devcontainers/features/github-cli:1": {}, | ||
| "ghcr.io/devcontainers/features/node:1": { | ||
| "version": 20, | ||
| "installYarnUsingApt": false, | ||
| }, | ||
| "ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {}, | ||
| "ghcr.io/devcontainers/features/docker-in-docker:2": {}, | ||
| "ghcr.io/schlich/devcontainer-features/starship:0": {}, | ||
| }, | ||
| "postCreateCommand": { | ||
| "git-safe": "git config --global --add safe.directory ${containerWorkspaceFolder}", | ||
| "cargo-permissions": "sudo chown -R vscode:vscode /home/vscode/.cargo ${containerWorkspaceFolder}/target" | ||
| } | ||
| "image": "ghcr.io/dashpay/platform/devcontainer:0.1.0" | ||
| } |
This file contains hidden or 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,58 @@ | ||
| name: Prebuild Dev Containers | ||
|
|
||
| on: | ||
| push: | ||
| paths: | ||
| - '.devcontainer/**' | ||
| - '.github/workflows/prebuild-devcontainers.yml' | ||
| - rust-toolchain.toml | ||
| - Dockerfile | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build and push devcontainer | ||
| runs-on: ["self-hosted", "linux", "x64", "ubuntu-platform"] | ||
| timeout-minutes: 60 | ||
| steps: | ||
| - name: Checkout repo | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.JS | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "20" | ||
|
|
||
| - name: Install skopeo | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y skopeo | ||
|
|
||
| - name: Set up QEMU | ||
| uses: docker/setup-qemu-action@v3 | ||
|
|
||
| - name: Setup Docker buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
| with: | ||
| use: true | ||
|
|
||
| - name: Login to GitHub Container Registry | ||
| uses: docker/login-action@v2 | ||
| with: | ||
| registry: ghcr.io | ||
| username: dashpay | ||
| password: ${{ secrets.GHCR_TOKEN }} | ||
|
|
||
| - name: Build and push Platform devcontainer | ||
| uses: devcontainers/[email protected] | ||
| with: | ||
| imageName: ghcr.io/dashpay/platform/devcontainer | ||
| imageTag: 0.1.0 | ||
| platform: linux/amd64,linux/arm64 | ||
| configFile: .devcontainer/devcontainer-build.json | ||
| push: always | ||
| cacheFrom: ghcr.io/dashpay/platform/devcontainer | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.