2022-03-21 20:30:34 +00:00
|
|
|
# docker-dind.buildx-git
|
|
|
|
|
2022-03-23 20:02:59 +00:00
|
|
|
DIND Docker image template with git for build-x pipelines.
|
|
|
|
|
|
|
|
pipeline sample for agola
|
|
|
|
|
|
|
|
version: v0
|
|
|
|
runs:
|
|
|
|
- name: Build image
|
|
|
|
tasks:
|
|
|
|
- name: build docker image
|
|
|
|
runtime:
|
|
|
|
containers:
|
|
|
|
- image: docker-buildx:dind-git
|
|
|
|
privileged: true
|
|
|
|
working_dir: /workspace
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
name: buildX prepare
|
|
|
|
command: buildx-bgstart.sh
|
|
|
|
- run:
|
|
|
|
name: buildX build
|
|
|
|
command: |
|
|
|
|
docker login ${DOCKERLOGIN} -p ${DOCKERPASS}
|
|
|
|
docker buildx build --platform linux/amd64,linux/arm64 . -t ${DOCKERIMAGE} --push
|