ci: use mirror for image fetches
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
// yaml_stream.jsonnet
|
// yaml_stream.jsonnet
|
||||||
local Build(go, alpine, os, arch) = {
|
local Build(mirror, go, alpine, os, arch) = {
|
||||||
kind: "pipeline",
|
kind: "pipeline",
|
||||||
type: "docker",
|
type: "docker",
|
||||||
name: "build-" + go + "-alpine" + alpine + "-" + arch,
|
name: "build-" + go + "-alpine" + alpine + "-" + arch,
|
||||||
@@ -17,6 +17,7 @@ local Build(go, alpine, os, arch) = {
|
|||||||
{
|
{
|
||||||
name: "build",
|
name: "build",
|
||||||
image: "golang:" + go +"-alpine" + alpine,
|
image: "golang:" + go +"-alpine" + alpine,
|
||||||
|
mirror: mirror,
|
||||||
commands: [
|
commands: [
|
||||||
"apk update",
|
"apk update",
|
||||||
"apk add --no-cache git",
|
"apk add --no-cache git",
|
||||||
@@ -28,6 +29,7 @@ local Build(go, alpine, os, arch) = {
|
|||||||
{
|
{
|
||||||
name: "check-policy-forgejo",
|
name: "check-policy-forgejo",
|
||||||
image: "alpine:" + alpine,
|
image: "alpine:" + alpine,
|
||||||
|
mirror: mirror,
|
||||||
depends_on: ["build"],
|
depends_on: ["build"],
|
||||||
commands: [
|
commands: [
|
||||||
"./.bin/go-away --check --slog-level DEBUG --backend example.com=http://127.0.0.1:80 --policy examples/forgejo.yml --policy-snippets examples/snippets/"
|
"./.bin/go-away --check --slog-level DEBUG --backend example.com=http://127.0.0.1:80 --policy examples/forgejo.yml --policy-snippets examples/snippets/"
|
||||||
@@ -36,6 +38,7 @@ local Build(go, alpine, os, arch) = {
|
|||||||
{
|
{
|
||||||
name: "check-policy-generic",
|
name: "check-policy-generic",
|
||||||
image: "alpine:" + alpine,
|
image: "alpine:" + alpine,
|
||||||
|
mirror: mirror,
|
||||||
depends_on: ["build"],
|
depends_on: ["build"],
|
||||||
commands: [
|
commands: [
|
||||||
"./.bin/go-away --check --slog-level DEBUG --backend example.com=http://127.0.0.1:80 --policy examples/generic.yml --policy-snippets examples/snippets/"
|
"./.bin/go-away --check --slog-level DEBUG --backend example.com=http://127.0.0.1:80 --policy examples/generic.yml --policy-snippets examples/snippets/"
|
||||||
@@ -44,6 +47,7 @@ local Build(go, alpine, os, arch) = {
|
|||||||
{
|
{
|
||||||
name: "test-wasm-success",
|
name: "test-wasm-success",
|
||||||
image: "alpine:" + alpine,
|
image: "alpine:" + alpine,
|
||||||
|
mirror: mirror,
|
||||||
depends_on: ["build"],
|
depends_on: ["build"],
|
||||||
commands: [
|
commands: [
|
||||||
"./.bin/test-wasm-runtime -wasm ./embed/challenge/js-pow-sha256/runtime/runtime.wasm " +
|
"./.bin/test-wasm-runtime -wasm ./embed/challenge/js-pow-sha256/runtime/runtime.wasm " +
|
||||||
@@ -56,6 +60,7 @@ local Build(go, alpine, os, arch) = {
|
|||||||
{
|
{
|
||||||
name: "test-wasm-fail",
|
name: "test-wasm-fail",
|
||||||
image: "alpine:" + alpine,
|
image: "alpine:" + alpine,
|
||||||
|
mirror: mirror,
|
||||||
depends_on: ["build"],
|
depends_on: ["build"],
|
||||||
commands: [
|
commands: [
|
||||||
"./.bin/test-wasm-runtime -wasm ./embed/challenge/js-pow-sha256/runtime/runtime.wasm " +
|
"./.bin/test-wasm-runtime -wasm ./embed/challenge/js-pow-sha256/runtime/runtime.wasm " +
|
||||||
@@ -68,7 +73,7 @@ local Build(go, alpine, os, arch) = {
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
local Publish(registry, repo, secret, go, alpine, os, arch, trigger, platforms, extra) = {
|
local Publish(mirror, registry, repo, secret, go, alpine, os, arch, trigger, platforms, extra) = {
|
||||||
kind: "pipeline",
|
kind: "pipeline",
|
||||||
type: "docker",
|
type: "docker",
|
||||||
name: "publish-" + go + "-alpine" + alpine + "-" + secret,
|
name: "publish-" + go + "-alpine" + alpine + "-" + secret,
|
||||||
@@ -78,6 +83,15 @@ local Publish(registry, repo, secret, go, alpine, os, arch, trigger, platforms,
|
|||||||
},
|
},
|
||||||
trigger: trigger,
|
trigger: trigger,
|
||||||
steps: [
|
steps: [
|
||||||
|
{
|
||||||
|
name: "setup-buildkitd",
|
||||||
|
image: "alpine:" + alpine,
|
||||||
|
mirror: mirror,
|
||||||
|
commands: [
|
||||||
|
"echo '[registry.\"docker.io\"]' > buildkitd.toml",
|
||||||
|
"echo ' mirrors = [\"mirror.gcr.io\"]' >> buildkitd.toml"
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "docker",
|
name: "docker",
|
||||||
image: "plugins/buildx",
|
image: "plugins/buildx",
|
||||||
@@ -87,13 +101,15 @@ local Publish(registry, repo, secret, go, alpine, os, arch, trigger, platforms,
|
|||||||
SOURCE_DATE_EPOCH: 0,
|
SOURCE_DATE_EPOCH: 0,
|
||||||
TZ: "UTC",
|
TZ: "UTC",
|
||||||
LC_ALL: "C",
|
LC_ALL: "C",
|
||||||
|
PLUGIN_BUILDER_CONFIG: "buildkitd.toml",
|
||||||
|
PLUGIN_BUILDER_DRIVER: "docker-container",
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
registry: registry,
|
registry: registry,
|
||||||
repo: repo,
|
repo: repo,
|
||||||
|
mirror: mirror,
|
||||||
compress: true,
|
compress: true,
|
||||||
platform: platforms,
|
platform: platforms,
|
||||||
builder_driver: "docker-container",
|
|
||||||
build_args: {
|
build_args: {
|
||||||
from_builder: "golang:" + go +"-alpine" + alpine,
|
from_builder: "golang:" + go +"-alpine" + alpine,
|
||||||
from: "alpine:" + alpine,
|
from: "alpine:" + alpine,
|
||||||
@@ -116,17 +132,19 @@ local containerArchitectures = ["linux/amd64", "linux/arm64", "linux/riscv64"];
|
|||||||
local alpineVersion = "3.21";
|
local alpineVersion = "3.21";
|
||||||
local goVersion = "1.24";
|
local goVersion = "1.24";
|
||||||
|
|
||||||
|
local mirror = "https://mirror.gcr.io";
|
||||||
|
|
||||||
[
|
[
|
||||||
Build(goVersion, alpineVersion, "linux", "amd64"),
|
Build(mirror, goVersion, alpineVersion, "linux", "amd64"),
|
||||||
Build(goVersion, alpineVersion, "linux", "arm64"),
|
Build(mirror, goVersion, alpineVersion, "linux", "arm64"),
|
||||||
|
|
||||||
# latest
|
# latest
|
||||||
Publish("git.gammaspectra.live", "git.gammaspectra.live/git/go-away", "git", goVersion, alpineVersion, "linux", "amd64", {event: ["push"], branch: ["master"], }, containerArchitectures, {tags: ["latest"],}) + {name: "publish-latest-git"},
|
Publish(mirror, "git.gammaspectra.live", "git.gammaspectra.live/git/go-away", "git", goVersion, alpineVersion, "linux", "amd64", {event: ["push"], branch: ["master"], }, containerArchitectures, {tags: ["latest"],}) + {name: "publish-latest-git"},
|
||||||
Publish("codeberg.org", "codeberg.org/weebdatahoarder/go-away", "codeberg", goVersion, alpineVersion, "linux", "amd64", {event: ["push"], branch: ["master"], }, containerArchitectures, {tags: ["latest"],}) + {name: "publish-latest-codeberg"},
|
Publish(mirror, "codeberg.org", "codeberg.org/weebdatahoarder/go-away", "codeberg", goVersion, alpineVersion, "linux", "amd64", {event: ["push"], branch: ["master"], }, containerArchitectures, {tags: ["latest"],}) + {name: "publish-latest-codeberg"},
|
||||||
Publish("ghcr.io", "ghcr.io/weebdatahoarder/go-away", "github", goVersion, alpineVersion, "linux", "amd64", {event: ["push"], branch: ["master"], }, containerArchitectures, {tags: ["latest"],}) + {name: "publish-latest-github"},
|
Publish(mirror, "ghcr.io", "ghcr.io/weebdatahoarder/go-away", "github", goVersion, alpineVersion, "linux", "amd64", {event: ["push"], branch: ["master"], }, containerArchitectures, {tags: ["latest"],}) + {name: "publish-latest-github"},
|
||||||
|
|
||||||
# modern
|
# modern
|
||||||
Publish("git.gammaspectra.live", "git.gammaspectra.live/git/go-away", "git", goVersion, alpineVersion, "linux", "amd64", {event: ["promote", "tag"], target: ["production"], }, containerArchitectures, {auto_tag: true,}),
|
Publish(mirror, "git.gammaspectra.live", "git.gammaspectra.live/git/go-away", "git", goVersion, alpineVersion, "linux", "amd64", {event: ["promote", "tag"], target: ["production"], }, containerArchitectures, {auto_tag: true,}),
|
||||||
Publish("codeberg.org", "codeberg.org/weebdatahoarder/go-away", "codeberg", goVersion, alpineVersion, "linux", "amd64", {event: ["promote", "tag"], target: ["production"], }, containerArchitectures, {auto_tag: true,}),
|
Publish(mirror, "codeberg.org", "codeberg.org/weebdatahoarder/go-away", "codeberg", goVersion, alpineVersion, "linux", "amd64", {event: ["promote", "tag"], target: ["production"], }, containerArchitectures, {auto_tag: true,}),
|
||||||
Publish("ghcr.io", "ghcr.io/weebdatahoarder/go-away", "github", goVersion, alpineVersion, "linux", "amd64", {event: ["promote", "tag"], target: ["production"], }, containerArchitectures, {auto_tag: true,}),
|
Publish(mirror, "ghcr.io", "ghcr.io/weebdatahoarder/go-away", "github", goVersion, alpineVersion, "linux", "amd64", {event: ["promote", "tag"], target: ["production"], }, containerArchitectures, {auto_tag: true,}),
|
||||||
]
|
]
|
||||||
72
.drone.yml
72
.drone.yml
@@ -17,6 +17,7 @@ steps:
|
|||||||
- go build -v -pgo=auto -v -trimpath -ldflags=-buildid= -o ./.bin/go-away ./cmd/go-away
|
- go build -v -pgo=auto -v -trimpath -ldflags=-buildid= -o ./.bin/go-away ./cmd/go-away
|
||||||
- go build -v -o ./.bin/test-wasm-runtime ./cmd/test-wasm-runtime
|
- go build -v -o ./.bin/test-wasm-runtime ./cmd/test-wasm-runtime
|
||||||
image: golang:1.24-alpine3.21
|
image: golang:1.24-alpine3.21
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
name: build
|
name: build
|
||||||
- commands:
|
- commands:
|
||||||
- ./.bin/go-away --check --slog-level DEBUG --backend example.com=http://127.0.0.1:80
|
- ./.bin/go-away --check --slog-level DEBUG --backend example.com=http://127.0.0.1:80
|
||||||
@@ -24,6 +25,7 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
image: alpine:3.21
|
image: alpine:3.21
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
name: check-policy-forgejo
|
name: check-policy-forgejo
|
||||||
- commands:
|
- commands:
|
||||||
- ./.bin/go-away --check --slog-level DEBUG --backend example.com=http://127.0.0.1:80
|
- ./.bin/go-away --check --slog-level DEBUG --backend example.com=http://127.0.0.1:80
|
||||||
@@ -31,6 +33,7 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
image: alpine:3.21
|
image: alpine:3.21
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
name: check-policy-generic
|
name: check-policy-generic
|
||||||
- commands:
|
- commands:
|
||||||
- ./.bin/test-wasm-runtime -wasm ./embed/challenge/js-pow-sha256/runtime/runtime.wasm
|
- ./.bin/test-wasm-runtime -wasm ./embed/challenge/js-pow-sha256/runtime/runtime.wasm
|
||||||
@@ -41,6 +44,7 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
image: alpine:3.21
|
image: alpine:3.21
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
name: test-wasm-success
|
name: test-wasm-success
|
||||||
- commands:
|
- commands:
|
||||||
- ./.bin/test-wasm-runtime -wasm ./embed/challenge/js-pow-sha256/runtime/runtime.wasm
|
- ./.bin/test-wasm-runtime -wasm ./embed/challenge/js-pow-sha256/runtime/runtime.wasm
|
||||||
@@ -51,6 +55,7 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
image: alpine:3.21
|
image: alpine:3.21
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
name: test-wasm-fail
|
name: test-wasm-fail
|
||||||
type: docker
|
type: docker
|
||||||
---
|
---
|
||||||
@@ -72,6 +77,7 @@ steps:
|
|||||||
- go build -v -pgo=auto -v -trimpath -ldflags=-buildid= -o ./.bin/go-away ./cmd/go-away
|
- go build -v -pgo=auto -v -trimpath -ldflags=-buildid= -o ./.bin/go-away ./cmd/go-away
|
||||||
- go build -v -o ./.bin/test-wasm-runtime ./cmd/test-wasm-runtime
|
- go build -v -o ./.bin/test-wasm-runtime ./cmd/test-wasm-runtime
|
||||||
image: golang:1.24-alpine3.21
|
image: golang:1.24-alpine3.21
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
name: build
|
name: build
|
||||||
- commands:
|
- commands:
|
||||||
- ./.bin/go-away --check --slog-level DEBUG --backend example.com=http://127.0.0.1:80
|
- ./.bin/go-away --check --slog-level DEBUG --backend example.com=http://127.0.0.1:80
|
||||||
@@ -79,6 +85,7 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
image: alpine:3.21
|
image: alpine:3.21
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
name: check-policy-forgejo
|
name: check-policy-forgejo
|
||||||
- commands:
|
- commands:
|
||||||
- ./.bin/go-away --check --slog-level DEBUG --backend example.com=http://127.0.0.1:80
|
- ./.bin/go-away --check --slog-level DEBUG --backend example.com=http://127.0.0.1:80
|
||||||
@@ -86,6 +93,7 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
image: alpine:3.21
|
image: alpine:3.21
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
name: check-policy-generic
|
name: check-policy-generic
|
||||||
- commands:
|
- commands:
|
||||||
- ./.bin/test-wasm-runtime -wasm ./embed/challenge/js-pow-sha256/runtime/runtime.wasm
|
- ./.bin/test-wasm-runtime -wasm ./embed/challenge/js-pow-sha256/runtime/runtime.wasm
|
||||||
@@ -96,6 +104,7 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
image: alpine:3.21
|
image: alpine:3.21
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
name: test-wasm-success
|
name: test-wasm-success
|
||||||
- commands:
|
- commands:
|
||||||
- ./.bin/test-wasm-runtime -wasm ./embed/challenge/js-pow-sha256/runtime/runtime.wasm
|
- ./.bin/test-wasm-runtime -wasm ./embed/challenge/js-pow-sha256/runtime/runtime.wasm
|
||||||
@@ -106,6 +115,7 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
image: alpine:3.21
|
image: alpine:3.21
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
name: test-wasm-fail
|
name: test-wasm-fail
|
||||||
type: docker
|
type: docker
|
||||||
---
|
---
|
||||||
@@ -115,9 +125,17 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
os: linux
|
os: linux
|
||||||
steps:
|
steps:
|
||||||
|
- commands:
|
||||||
|
- echo '[registry."docker.io"]' > buildkitd.toml
|
||||||
|
- echo ' mirrors = ["mirror.gcr.io"]' >> buildkitd.toml
|
||||||
|
image: alpine:3.21
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
|
name: setup-buildkitd
|
||||||
- environment:
|
- environment:
|
||||||
DOCKER_BUILDKIT: "1"
|
DOCKER_BUILDKIT: "1"
|
||||||
LC_ALL: C
|
LC_ALL: C
|
||||||
|
PLUGIN_BUILDER_CONFIG: buildkitd.toml
|
||||||
|
PLUGIN_BUILDER_DRIVER: docker-container
|
||||||
SOURCE_DATE_EPOCH: 0
|
SOURCE_DATE_EPOCH: 0
|
||||||
TZ: UTC
|
TZ: UTC
|
||||||
image: plugins/buildx
|
image: plugins/buildx
|
||||||
@@ -128,8 +146,8 @@ steps:
|
|||||||
build_args:
|
build_args:
|
||||||
from: alpine:3.21
|
from: alpine:3.21
|
||||||
from_builder: golang:1.24-alpine3.21
|
from_builder: golang:1.24-alpine3.21
|
||||||
builder_driver: docker-container
|
|
||||||
compress: true
|
compress: true
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
password:
|
password:
|
||||||
from_secret: git_password
|
from_secret: git_password
|
||||||
platform:
|
platform:
|
||||||
@@ -155,9 +173,17 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
os: linux
|
os: linux
|
||||||
steps:
|
steps:
|
||||||
|
- commands:
|
||||||
|
- echo '[registry."docker.io"]' > buildkitd.toml
|
||||||
|
- echo ' mirrors = ["mirror.gcr.io"]' >> buildkitd.toml
|
||||||
|
image: alpine:3.21
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
|
name: setup-buildkitd
|
||||||
- environment:
|
- environment:
|
||||||
DOCKER_BUILDKIT: "1"
|
DOCKER_BUILDKIT: "1"
|
||||||
LC_ALL: C
|
LC_ALL: C
|
||||||
|
PLUGIN_BUILDER_CONFIG: buildkitd.toml
|
||||||
|
PLUGIN_BUILDER_DRIVER: docker-container
|
||||||
SOURCE_DATE_EPOCH: 0
|
SOURCE_DATE_EPOCH: 0
|
||||||
TZ: UTC
|
TZ: UTC
|
||||||
image: plugins/buildx
|
image: plugins/buildx
|
||||||
@@ -168,8 +194,8 @@ steps:
|
|||||||
build_args:
|
build_args:
|
||||||
from: alpine:3.21
|
from: alpine:3.21
|
||||||
from_builder: golang:1.24-alpine3.21
|
from_builder: golang:1.24-alpine3.21
|
||||||
builder_driver: docker-container
|
|
||||||
compress: true
|
compress: true
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
password:
|
password:
|
||||||
from_secret: codeberg_password
|
from_secret: codeberg_password
|
||||||
platform:
|
platform:
|
||||||
@@ -195,9 +221,17 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
os: linux
|
os: linux
|
||||||
steps:
|
steps:
|
||||||
|
- commands:
|
||||||
|
- echo '[registry."docker.io"]' > buildkitd.toml
|
||||||
|
- echo ' mirrors = ["mirror.gcr.io"]' >> buildkitd.toml
|
||||||
|
image: alpine:3.21
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
|
name: setup-buildkitd
|
||||||
- environment:
|
- environment:
|
||||||
DOCKER_BUILDKIT: "1"
|
DOCKER_BUILDKIT: "1"
|
||||||
LC_ALL: C
|
LC_ALL: C
|
||||||
|
PLUGIN_BUILDER_CONFIG: buildkitd.toml
|
||||||
|
PLUGIN_BUILDER_DRIVER: docker-container
|
||||||
SOURCE_DATE_EPOCH: 0
|
SOURCE_DATE_EPOCH: 0
|
||||||
TZ: UTC
|
TZ: UTC
|
||||||
image: plugins/buildx
|
image: plugins/buildx
|
||||||
@@ -208,8 +242,8 @@ steps:
|
|||||||
build_args:
|
build_args:
|
||||||
from: alpine:3.21
|
from: alpine:3.21
|
||||||
from_builder: golang:1.24-alpine3.21
|
from_builder: golang:1.24-alpine3.21
|
||||||
builder_driver: docker-container
|
|
||||||
compress: true
|
compress: true
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
password:
|
password:
|
||||||
from_secret: github_password
|
from_secret: github_password
|
||||||
platform:
|
platform:
|
||||||
@@ -235,9 +269,17 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
os: linux
|
os: linux
|
||||||
steps:
|
steps:
|
||||||
|
- commands:
|
||||||
|
- echo '[registry."docker.io"]' > buildkitd.toml
|
||||||
|
- echo ' mirrors = ["mirror.gcr.io"]' >> buildkitd.toml
|
||||||
|
image: alpine:3.21
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
|
name: setup-buildkitd
|
||||||
- environment:
|
- environment:
|
||||||
DOCKER_BUILDKIT: "1"
|
DOCKER_BUILDKIT: "1"
|
||||||
LC_ALL: C
|
LC_ALL: C
|
||||||
|
PLUGIN_BUILDER_CONFIG: buildkitd.toml
|
||||||
|
PLUGIN_BUILDER_DRIVER: docker-container
|
||||||
SOURCE_DATE_EPOCH: 0
|
SOURCE_DATE_EPOCH: 0
|
||||||
TZ: UTC
|
TZ: UTC
|
||||||
image: plugins/buildx
|
image: plugins/buildx
|
||||||
@@ -249,8 +291,8 @@ steps:
|
|||||||
build_args:
|
build_args:
|
||||||
from: alpine:3.21
|
from: alpine:3.21
|
||||||
from_builder: golang:1.24-alpine3.21
|
from_builder: golang:1.24-alpine3.21
|
||||||
builder_driver: docker-container
|
|
||||||
compress: true
|
compress: true
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
password:
|
password:
|
||||||
from_secret: git_password
|
from_secret: git_password
|
||||||
platform:
|
platform:
|
||||||
@@ -275,9 +317,17 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
os: linux
|
os: linux
|
||||||
steps:
|
steps:
|
||||||
|
- commands:
|
||||||
|
- echo '[registry."docker.io"]' > buildkitd.toml
|
||||||
|
- echo ' mirrors = ["mirror.gcr.io"]' >> buildkitd.toml
|
||||||
|
image: alpine:3.21
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
|
name: setup-buildkitd
|
||||||
- environment:
|
- environment:
|
||||||
DOCKER_BUILDKIT: "1"
|
DOCKER_BUILDKIT: "1"
|
||||||
LC_ALL: C
|
LC_ALL: C
|
||||||
|
PLUGIN_BUILDER_CONFIG: buildkitd.toml
|
||||||
|
PLUGIN_BUILDER_DRIVER: docker-container
|
||||||
SOURCE_DATE_EPOCH: 0
|
SOURCE_DATE_EPOCH: 0
|
||||||
TZ: UTC
|
TZ: UTC
|
||||||
image: plugins/buildx
|
image: plugins/buildx
|
||||||
@@ -289,8 +339,8 @@ steps:
|
|||||||
build_args:
|
build_args:
|
||||||
from: alpine:3.21
|
from: alpine:3.21
|
||||||
from_builder: golang:1.24-alpine3.21
|
from_builder: golang:1.24-alpine3.21
|
||||||
builder_driver: docker-container
|
|
||||||
compress: true
|
compress: true
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
password:
|
password:
|
||||||
from_secret: codeberg_password
|
from_secret: codeberg_password
|
||||||
platform:
|
platform:
|
||||||
@@ -315,9 +365,17 @@ platform:
|
|||||||
arch: amd64
|
arch: amd64
|
||||||
os: linux
|
os: linux
|
||||||
steps:
|
steps:
|
||||||
|
- commands:
|
||||||
|
- echo '[registry."docker.io"]' > buildkitd.toml
|
||||||
|
- echo ' mirrors = ["mirror.gcr.io"]' >> buildkitd.toml
|
||||||
|
image: alpine:3.21
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
|
name: setup-buildkitd
|
||||||
- environment:
|
- environment:
|
||||||
DOCKER_BUILDKIT: "1"
|
DOCKER_BUILDKIT: "1"
|
||||||
LC_ALL: C
|
LC_ALL: C
|
||||||
|
PLUGIN_BUILDER_CONFIG: buildkitd.toml
|
||||||
|
PLUGIN_BUILDER_DRIVER: docker-container
|
||||||
SOURCE_DATE_EPOCH: 0
|
SOURCE_DATE_EPOCH: 0
|
||||||
TZ: UTC
|
TZ: UTC
|
||||||
image: plugins/buildx
|
image: plugins/buildx
|
||||||
@@ -329,8 +387,8 @@ steps:
|
|||||||
build_args:
|
build_args:
|
||||||
from: alpine:3.21
|
from: alpine:3.21
|
||||||
from_builder: golang:1.24-alpine3.21
|
from_builder: golang:1.24-alpine3.21
|
||||||
builder_driver: docker-container
|
|
||||||
compress: true
|
compress: true
|
||||||
|
mirror: https://mirror.gcr.io
|
||||||
password:
|
password:
|
||||||
from_secret: github_password
|
from_secret: github_password
|
||||||
platform:
|
platform:
|
||||||
@@ -350,6 +408,6 @@ trigger:
|
|||||||
type: docker
|
type: docker
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 8aed9810938e4aa4b34c4afb35e1101f27f98a61ffe5349be9a30f22ce7480ed
|
hmac: ad13c88b81cd1c6ebd4bb8d33479ffe8e67bc8caefdcc1c06dd1a6b75476bcd7
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|||||||
Reference in New Issue
Block a user