@tahminator/pipeline 1.0.92-beta.g1f7c613a → 1.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -14
- package/dist/docker/client.js +1 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -333,8 +333,6 @@ The diff is split per Kubernetes object (matched by API group, kind, namespace a
|
|
|
333
333
|
|
|
334
334
|
Interface with Docker to build & deploy images
|
|
335
335
|
|
|
336
|
-
`buildImage` runs BuildKit on the runner's network with `--network host`, so every `RUN` instruction can reach whatever the runner can, including hosts on the Headscale VPN connected by the setup action. Dockerfiles don't need `RUN --network=host`.
|
|
337
|
-
|
|
338
336
|
```ts
|
|
339
337
|
// https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-2.html#using-declarations-and-explicit-resource-management
|
|
340
338
|
await using client = await DockerClient.create(
|
|
@@ -425,18 +423,6 @@ View the [action file](./actions/setup/action.yaml) for all available inputs.
|
|
|
425
423
|
cargo-nextest@0.9.100
|
|
426
424
|
```
|
|
427
425
|
|
|
428
|
-
Language toolchains are installed and cached by the setup action, so jobs don't need separate `setup-go` / `setup-java` / `rust-toolchain` steps:
|
|
429
|
-
|
|
430
|
-
```yaml
|
|
431
|
-
- uses: tahminator/pipeline/actions/setup@<version>
|
|
432
|
-
with:
|
|
433
|
-
INSTALL_GO: "true" # version read from GO_VERSION_FILE (default go.mod) unless GO_VERSION is set
|
|
434
|
-
INSTALL_JAVA: "true" # JAVA_VERSION "21", JAVA_DISTRIBUTION "temurin", JAVA_CACHE "maven" by default
|
|
435
|
-
INSTALL_RUST: "true" # also caches the Cargo registry and target dir
|
|
436
|
-
RUST_TOOLCHAIN: "1.93.0"
|
|
437
|
-
RUST_COMPONENTS: "clippy, rustfmt"
|
|
438
|
-
```
|
|
439
|
-
|
|
440
426
|
### `NPMClient`
|
|
441
427
|
|
|
442
428
|
Interface with NPM registry in order to publish packages to `npmjs.com`
|
package/dist/docker/client.js
CHANGED
|
@@ -48,10 +48,7 @@ export class DockerClient {
|
|
|
48
48
|
console.log("Building image with following tags:");
|
|
49
49
|
tags.forEach((tag) => console.log(Utils.Colors.cyan(tag)));
|
|
50
50
|
try {
|
|
51
|
-
await $ `docker buildx create --use --name ${dockerRepository}-builder
|
|
52
|
-
--driver docker-container \
|
|
53
|
-
--driver-opt network=host \
|
|
54
|
-
--buildkitd-flags ${"--allow-insecure-entitlement network.host"}`;
|
|
51
|
+
await $ `docker buildx create --use --name ${dockerRepository}-builder`;
|
|
55
52
|
}
|
|
56
53
|
catch {
|
|
57
54
|
await $ `docker buildx use ${dockerRepository}-builder`;
|
|
@@ -71,8 +68,6 @@ export class DockerClient {
|
|
|
71
68
|
--cache-from=type=gha \
|
|
72
69
|
--cache-to=type=gha,mode=max \
|
|
73
70
|
${buildArgFlags} \
|
|
74
|
-
--network host \
|
|
75
|
-
--allow network.host \
|
|
76
71
|
${tagFlags} \
|
|
77
72
|
.`;
|
|
78
73
|
console.log(shouldUpload ?
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"author": "Tahmid Ahmed",
|
|
5
5
|
"description": "A collection of Bun shell scripts that can be re-used in various CICD pipelines.",
|
|
6
|
-
"version": "1.0.92
|
|
6
|
+
"version": "1.0.92",
|
|
7
7
|
"repository": {
|
|
8
8
|
"url": "git+https://github.com/tahminator/pipeline.git"
|
|
9
9
|
},
|