mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 01:59:08 +00:00
ci: move dev-container again, just dont run it with everything else
This commit is contained in:
parent
ac830fc946
commit
efe1e5ea5e
4 changed files with 6 additions and 4 deletions
44
hack/dev-container/BUILD.bazel
Normal file
44
hack/dev-container/BUILD.bazel
Normal file
|
@ -0,0 +1,44 @@
|
|||
load("//:hack/publish.bzl", "publish")
|
||||
load("@io_bazel_rules_docker//docker/util:run.bzl", "container_run_and_commit_layer")
|
||||
load("@io_bazel_rules_docker//container:container.bzl", "container_image")
|
||||
|
||||
container_run_and_commit_layer(
|
||||
name = "bazel-layer",
|
||||
commands = [
|
||||
"go get -u github.com/bazelbuild/bazelisk",
|
||||
"ln /go/bin/bazelisk /usr/bin/bazel",
|
||||
"go get -u github.com/bazelbuild/buildtools/...",
|
||||
],
|
||||
image = "@devcontainergo//image",
|
||||
)
|
||||
|
||||
container_run_and_commit_layer(
|
||||
name = "node-layer",
|
||||
commands = [
|
||||
"su vscode -c 'source /usr/local/share/nvm/nvm.sh && nvm install lts/* 2>&1'",
|
||||
],
|
||||
image = "@devcontainergo//image",
|
||||
)
|
||||
|
||||
container_image(
|
||||
name = "dev-container",
|
||||
base = "@devcontainergo//image",
|
||||
layers = [
|
||||
":bazel-layer",
|
||||
":node-layer",
|
||||
],
|
||||
)
|
||||
|
||||
publish(
|
||||
name = "publish-dev-container",
|
||||
image = ":dev-container",
|
||||
service = "dev-container",
|
||||
)
|
||||
|
||||
publish(
|
||||
name = "publish-dev-container-dockerhub",
|
||||
image = ":dev-container",
|
||||
prefix = "roleypoly/",
|
||||
registry = "index.docker.io",
|
||||
service = "dev-container",
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue