Added agola pipeline
agola/Legacy-fox-proxy/sample run The run finished successfully
Details
agola/Legacy-fox-proxy/sample run The run finished successfully
Details
This commit is contained in:
parent
8b82e948f5
commit
2b1f89c2f3
|
@ -0,0 +1,73 @@
|
|||
version: v0
|
||||
|
||||
runs:
|
||||
- name: sample run
|
||||
docker_registries_auth:
|
||||
'mxfox.ru':
|
||||
username:
|
||||
from_variable: mxfoxdockerlogin
|
||||
password:
|
||||
from_variable: mxfoxdockersecret
|
||||
tasks:
|
||||
- name: checkout code
|
||||
runtime:
|
||||
containers:
|
||||
- image: alpine/git
|
||||
steps:
|
||||
- clone:
|
||||
- save_to_workspace:
|
||||
contents:
|
||||
- source_dir: .
|
||||
dest_dir: .
|
||||
paths:
|
||||
- '**'
|
||||
|
||||
- name: build docker image
|
||||
runtime:
|
||||
containers:
|
||||
- image: mxfox.ru/test/docker-buildx:dind
|
||||
privileged: true
|
||||
#shell: /busybox/sh
|
||||
working_dir: /workspace
|
||||
environment:
|
||||
DOCKERLOGIN:
|
||||
from_variable: mxfoxdockerlogin
|
||||
DOCKERPASS:
|
||||
from_variable: mxfoxdockersecret
|
||||
steps:
|
||||
- restore_workspace:
|
||||
dest_dir: .
|
||||
- run:
|
||||
name: docker start
|
||||
command: |
|
||||
dockerd --experimental &
|
||||
x_state="FAIL"
|
||||
for i in $(seq 60 $END)
|
||||
do
|
||||
sleep 1;
|
||||
if test -e "/var/run/docker.sock"
|
||||
then
|
||||
x_state="OK"
|
||||
break
|
||||
fi
|
||||
echo "check..." $i
|
||||
done
|
||||
|
||||
if [ "$x_state" == "FAIL" ]
|
||||
then
|
||||
echo "FAILED"
|
||||
exit 9
|
||||
fi
|
||||
|
||||
- run:
|
||||
name: buildx prepare
|
||||
command: |
|
||||
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||
docker buildx create --name multiarch --driver docker-container --use
|
||||
docker buildx inspect --bootstrap
|
||||
- run:
|
||||
name: buildX run
|
||||
command: docker buildx build --platform linux/amd64,linux/arm64 .
|
||||
|
||||
depends:
|
||||
- checkout code
|
Loading…
Reference in New Issue