Compare commits
No commits in common. "9c2c8b9b093c319ce80ea52790a025b474d05910" and "18896f8e40acee56592f0f8f02099e8cfc4d564c" have entirely different histories.
9c2c8b9b09
...
18896f8e40
3 changed files with 17 additions and 4 deletions
|
@ -5,6 +5,7 @@ since buildx is flakey for me.
|
|||
|
||||
Currently only the docker registry is supported.
|
||||
|
||||
|
||||
## parameters
|
||||
|
||||
- repository: Required. The repository of the image.
|
||||
|
@ -16,7 +17,6 @@ Currently only the docker registry is supported.
|
|||
- manual: Optional. Don't use params and instead supply all arguments via the command line, default: `false`
|
||||
- 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).
|
||||
|
|
|
@ -23,7 +23,7 @@ jobs:
|
|||
image_resource:
|
||||
type: registry-image
|
||||
source:
|
||||
repository: alpine/git
|
||||
repository: alpine
|
||||
inputs:
|
||||
- name: source
|
||||
path: .
|
||||
|
@ -35,6 +35,7 @@ jobs:
|
|||
- -c
|
||||
- |
|
||||
#!/usr/bin/env sh
|
||||
apk add --no-cache git
|
||||
git rev-parse --short HEAD > docker-tags/tags.txt
|
||||
- task: build
|
||||
privileged: true
|
||||
|
@ -59,4 +60,16 @@ jobs:
|
|||
context: .
|
||||
manual: false
|
||||
run:
|
||||
path: build
|
||||
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
|
||||
|
|
|
@ -63,7 +63,7 @@ build() {
|
|||
if [ -z "$line" ]; then
|
||||
continue
|
||||
fi
|
||||
final_tag="$repository:$line,$final_tag"
|
||||
final_tag="$final_tag,$repository:$line"
|
||||
done < "$additional_tags"
|
||||
fi
|
||||
|
||||
|
|
Reference in a new issue