asfd
This commit is contained in:
parent
8d00ca9e7b
commit
65c3dc877c
2 changed files with 2 additions and 12 deletions
|
@ -17,5 +17,6 @@ RUN ARCH=$(uname -m) && \
|
|||
wget -q "https://github.com/moby/buildkit/releases/download/v0.21.0/buildkit-v0.21.0.linux-$SUFFIX.tar.gz" --output-document=- | tar --gz --extract --directory=/usr/local bin/buildctl && \
|
||||
chmod 555 /usr/local/bin/jq
|
||||
COPY --chmod=555 entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
ENV HOME=/woodpecker
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||
USER 1000:1000
|
||||
|
|
|
@ -1,17 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
set -eu;
|
||||
CI_PIPELINE_NUMBER=1
|
||||
CI_REPO_URL=CI_REPO_URL
|
||||
CI_COMMIT_SHA=123
|
||||
CI_REPO_CLONE_URL=CI_REPO_CLONE_URL
|
||||
PLUGIN_ANNOTATION='{"org.opencontainers.image.description":"A Woodpecker CI plugin for yamllint to lint yaml files.","org.opencontainers.image.documentation":"$CI_REPO_URL/README.md","org.opencontainers.image.licenses":"EUPL-1.2","org.opencontainers.image.ref.name":"kokuwaio/buildctl","org.opencontainers.image.revision":"$CI_COMMIT_SHA","org.opencontainers.image.source":"$CI_REPO_CLONE_URL","org.opencontainers.image.title":"Buildctl Plugin","org.opencontainers.image.url":"$CI_REPO_URL","org.opencontainers.image.vendor":"kokuwa.io","org.opencontainers.image.version":"v0.21.0"}'
|
||||
PLUGIN_NAME=kokuwaio/buildctl
|
||||
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='{"index.docker.io":{"password":"dckr_pat_gtggY8DWsR2ffTKMMrYR6pTycUE","username":"sschnabe"},"ghcr.io":{"password":"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","username":"kokuwaio-bot"},"registry.kokuwa.io":{"password":"6u9ij2qtqJiGbvnsgVuUyHc2OSHmtX6mC1wbmR253GwJN8IpbawyybYHIxu0hbRw","username":"woodpecker"}}'
|
||||
DOCKER_CONFIG=.
|
||||
|
||||
#echo $PLUGIN_AUTH | base64 -w0
|
||||
|
||||
##
|
||||
## check input
|
||||
|
@ -54,6 +42,7 @@ COMMAND="$COMMAND --local dockerfile='$BUILDCTL_DOCKERFILE'"
|
|||
if [[ "${PLUGIN_PLATFORM:-}" == "true" ]]; then
|
||||
COMMAND="$COMMAND --opt platform='$PLUGIN_PLATFORM'"
|
||||
fi
|
||||
s
|
||||
# https://github.com/moby/buildkit/blob/master/README.md#output
|
||||
OUTPUT=""
|
||||
if [[ -n "${PLUGIN_NAME:-}" ]]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue