From 2b7cbe1f9457c0aade994c1cf3eb2e3e82630d6a Mon Sep 17 00:00:00 2001 From: redxef Date: Wed, 9 Mar 2022 14:50:46 +0100 Subject: [PATCH] Add ci, update README add dockerignore. --- .dockerignore | 2 ++ README.md | 4 ++++ ci/pipeline.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 .dockerignore create mode 100644 ci/pipeline.yml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..4e8e7f9 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +ci/ +README.md diff --git a/README.md b/README.md index b7fb655..6f55312 100644 --- a/README.md +++ b/README.md @@ -10,3 +10,7 @@ Currently only the docker registry is supported. - username: Optional. The username used to log into the registry. - password: Optional. The password used to log into the registry. + +## Example + +To view a simple invocation just look at [pipeline.yml](ci/pipeline.yml). diff --git a/ci/pipeline.yml b/ci/pipeline.yml new file mode 100644 index 0000000..0d12d37 --- /dev/null +++ b/ci/pipeline.yml @@ -0,0 +1,41 @@ +--- +resources: +- name: source + type: git + source: + uri: https://gitea.redxef.at/redxef/concourse-buildkit + branch: master + +jobs: +- name: build-push + plan: + - get: source + trigger: true + - task: build + privileged: true + config: + platform: linux + image_resource: + type: registry-image + source: + repository: redxef/concourse-buildkit + inputs: + - name: source + path: . + params: + username: ((docker.username)) + password: ((docker.password)) + run: + path: entrypoint.sh + args: + - build + - --frontend + - dockerfile.v0 + - --local + - context=. + - --local + - dockerfile=. + - --opt + - platform=aarch64,arm,ppc64le,s390x,x86_64 + - --output + - type=image,name=docker.io/redxef/concourse-buildkit,push=true