asfd
This commit is contained in:
parent
7bfc5f522e
commit
cb8dad51b9
3 changed files with 4 additions and 21 deletions
|
@ -16,7 +16,8 @@
|
||||||
# Build image with local docker daemon.
|
# Build image with local docker daemon.
|
||||||
[group('image')]
|
[group('image')]
|
||||||
@build:
|
@build:
|
||||||
docker buildx build . --tag=kokuwaio/buildctl --platform=linux/amd64,linux/arm64
|
docker buildx build . --tag=kokuwaio/buildctl --platform=linux/amd64,linux/arm64 --push
|
||||||
|
docker buildx build . --platform=linux/amd64,linux/arm64 --push --tag registry.kokuwa.io/b
|
||||||
|
|
||||||
# Inspect image with docker.
|
# Inspect image with docker.
|
||||||
[group('image')]
|
[group('image')]
|
||||||
|
|
|
@ -7,24 +7,6 @@ when:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
buildd:
|
|
||||||
image: kokuwaio/buildctl:v0.21.0
|
|
||||||
pull: true
|
|
||||||
commands:
|
|
||||||
- echo $AUTH | base64 -w0
|
|
||||||
- env | sort
|
|
||||||
environment:
|
|
||||||
auth:
|
|
||||||
docker.io:
|
|
||||||
username: {from_secret: docker_io_username}
|
|
||||||
password: {from_secret: docker_io_password}
|
|
||||||
ghcr.io:
|
|
||||||
username: {from_secret: ghcr_io_username}
|
|
||||||
password: {from_secret: ghcr_io_password}
|
|
||||||
registry.kokuwa.io:
|
|
||||||
username: {from_secret: kokuwa_io_username}
|
|
||||||
password: {from_secret: kokuwa_io_password}
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: kokuwaio/buildctl:v0.21.0
|
image: kokuwaio/buildctl:v0.21.0
|
||||||
pull: true
|
pull: true
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eu;
|
set -eXu;
|
||||||
#CI_PIPELINE_NUMBER=1
|
#CI_PIPELINE_NUMBER=1
|
||||||
#CI_REPO_URL=CI_REPO_URL
|
#CI_REPO_URL=CI_REPO_URL
|
||||||
#CI_COMMIT_SHA=123
|
#CI_COMMIT_SHA=123
|
||||||
|
@ -8,7 +8,7 @@ set -eu;
|
||||||
#PLUGIN_NAME=registry.kokuwa.io/buildctl:$CI_PIPELINE_NUMBER
|
#PLUGIN_NAME=registry.kokuwa.io/buildctl:$CI_PIPELINE_NUMBER
|
||||||
#PLUGIN_PLATFORM=linux/amd64,linux/arm64
|
#PLUGIN_PLATFORM=linux/amd64,linux/arm64
|
||||||
#PLUGIN_AUTH='{"auths":{"registry.kokuwa.io":{"auth":"d29vZHBlY2tlcjo5cVRrVlpXSW1ITndXWXVMZ1pMajVST0FuYmZlOTEyUjlLWFFIVW51MG1iOGx5UWl5Z3hFUEZxVTN0REo5VzdE"},"ghcr.io":{"auth":"c3NjaG5hYmU6Z2hwX0lHVEswWkk0YTBqN2EzTjNIMlBmOEc2UFl1eGpEYjRmUlk0Yw=="},"https://index.docker.io/v1/":{"auth":"c3NjaG5hYmU6ZGNrcl9wYXRfZ3RnZ1k4RFdzUjJmZlRLTU1yWVI2cFR5Y1VF=="}}}'
|
#PLUGIN_AUTH='{"auths":{"registry.kokuwa.io":{"auth":"d29vZHBlY2tlcjo5cVRrVlpXSW1ITndXWXVMZ1pMajVST0FuYmZlOTEyUjlLWFFIVW51MG1iOGx5UWl5Z3hFUEZxVTN0REo5VzdE"},"ghcr.io":{"auth":"c3NjaG5hYmU6Z2hwX0lHVEswWkk0YTBqN2EzTjNIMlBmOEc2UFl1eGpEYjRmUlk0Yw=="},"https://index.docker.io/v1/":{"auth":"c3NjaG5hYmU6ZGNrcl9wYXRfZ3RnZ1k4RFdzUjJmZlRLTU1yWVI2cFR5Y1VF=="}}}'
|
||||||
|
echo $PLUGIN_AUTH | base64 -w0
|
||||||
##
|
##
|
||||||
## check input
|
## check input
|
||||||
##
|
##
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue