Compare commits
3 commits
18896f8e40
...
9c2c8b9b09
Author | SHA1 | Date | |
---|---|---|---|
9c2c8b9b09 | |||
5ca19483fa | |||
4a5bfd6027 |
3 changed files with 4 additions and 17 deletions
|
@ -5,7 +5,6 @@ since buildx is flakey for me.
|
||||||
|
|
||||||
Currently only the docker registry is supported.
|
Currently only the docker registry is supported.
|
||||||
|
|
||||||
|
|
||||||
## parameters
|
## parameters
|
||||||
|
|
||||||
- repository: Required. The repository of the image.
|
- repository: Required. The repository of the image.
|
||||||
|
@ -17,6 +16,7 @@ Currently only the docker registry is supported.
|
||||||
- manual: Optional. Don't use params and instead supply all arguments via the command line, default: `false`
|
- 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.
|
- username: Optional. The username used to log into the registry.
|
||||||
- password: Optional. The password used to log into the registry.
|
- password: Optional. The password used to log into the registry.
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
To view a simple invocation just look at [pipeline.yml](ci/pipeline.yml).
|
To view a simple invocation just look at [pipeline.yml](ci/pipeline.yml).
|
||||||
|
|
|
@ -23,7 +23,7 @@ jobs:
|
||||||
image_resource:
|
image_resource:
|
||||||
type: registry-image
|
type: registry-image
|
||||||
source:
|
source:
|
||||||
repository: alpine
|
repository: alpine/git
|
||||||
inputs:
|
inputs:
|
||||||
- name: source
|
- name: source
|
||||||
path: .
|
path: .
|
||||||
|
@ -35,7 +35,6 @@ jobs:
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
apk add --no-cache git
|
|
||||||
git rev-parse --short HEAD > docker-tags/tags.txt
|
git rev-parse --short HEAD > docker-tags/tags.txt
|
||||||
- task: build
|
- task: build
|
||||||
privileged: true
|
privileged: true
|
||||||
|
@ -60,16 +59,4 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
manual: false
|
manual: false
|
||||||
run:
|
run:
|
||||||
path: entrypoint.sh
|
path: build
|
||||||
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
|
if [ -z "$line" ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
final_tag="$final_tag,$repository:$line"
|
final_tag="$repository:$line,$final_tag"
|
||||||
done < "$additional_tags"
|
done < "$additional_tags"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Reference in a new issue