This repository has been archived on 2024-10-30. You can view files and clone it, but cannot push or open issues or pull requests.
concourse-buildkit/ci/pipeline.yml
2022-03-09 16:02:03 +01:00

75 lines
1.7 KiB
YAML

---
resources:
- name: source
type: git
source:
uri: https://gitea.redxef.at/redxef/concourse-buildkit
branch: master
- name: upstream-image
type: registry-image
source:
repository: moby/buildkit
jobs:
- name: build-push
plan:
- get: source
trigger: true
- get: upstream-image
trigger: true
- task: compute-docker-tags:
config:
platform: linux
image_resource:
type: registry-image
source:
repository: alpine
inputs:
- name: source
path: .
outputs:
- name: docker-tags
run:
path: sh
args:
- -c
- |
#!/usr/bin/env sh
apk add --no-cache git
git rev-parse --short HEAD > docker-tags/tags.txt
- task: build
privileged: true
config:
platform: linux
image_resource:
type: registry-image
source:
repository: redxef/concourse-buildkit
inputs:
- name: source
path: .
- name: docker-tags
params:
username: ((docker.username))
password: ((docker.password))
repository: docker.io/redxef/concourse-buildkit
tag: latest
additional_tags: docker-tags/tags.txt
push: true
platform: aarch64,arm,ppc64le,s390x,x86_64
context: .
manual: false
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