---
resources:
- name: source
type: git
source:
uri: https://gitea.redxef.at/redxef/concourse-buildkit
branch: master
fetch_tags: true
- name: upstream-image
type: registry-image
check_every: 6h
repository: moby/buildkit
jobs:
- name: build-push
plan:
- get: source
trigger: true
- get: upstream-image
- task: compute-docker-tags
config:
platform: linux
image_resource:
repository: alpine/git
inputs:
path: .
outputs:
- name: docker-tags
run:
path: sh
args:
- -c
- |
#!/usr/bin/env sh
git rev-parse --short HEAD > docker-tags/tags.txt
git show-ref --tags | \
sed -n "/$(git rev-parse HEAD)/ s|$(git rev-parse HEAD).refs/tags/||gp" \
>> docker-tags/tags.txt
- task: build
privileged: true
repository: redxef/concourse-buildkit
tag: v0.2.1
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
path: build