adjust config for autoscaler
This commit is contained in:
parent
f322309a6f
commit
cad608119c
1 changed files with 18 additions and 14 deletions
|
|
@ -54,18 +54,21 @@ steps:
|
|||
|
||||
# ref: https://github.com/woodpecker-ci/woodpecker/discussions/2721
|
||||
- name: Build
|
||||
image: library/docker:26.1.4-dind-alpine3.20
|
||||
# image: library/docker:26.1.4-dind-alpine3.20 # agent on k8s
|
||||
image: alpine:3.20 # agent on VM
|
||||
privileged: true
|
||||
environment:
|
||||
DOCKER_HOST: tcp://docker:2375
|
||||
commands: |
|
||||
docker info
|
||||
# docker buildx create --name mybuilder --use
|
||||
if [ ! -s r_build_latest.txt ] || [ ! "$(cat r-release-version.txt)" = "$(cat r_build_latest.txt)" ]; then
|
||||
apk add -q --no-cache py3-pip make just aws-cli docker-compose
|
||||
pip3 install -q b2 --break-system-packages
|
||||
just build-r-${PLATFORM} $(cat r-release-version.txt)
|
||||
fi
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock # agent on VM
|
||||
- /tmp:/tmp # agent on VM
|
||||
|
||||
- name: Upload
|
||||
image: pats22/s3-plugin:latest
|
||||
|
|
@ -84,16 +87,17 @@ steps:
|
|||
endpoint: s3.eu-central-003.backblazeb2.com
|
||||
overwrite: false
|
||||
volumes:
|
||||
- ci-tmp:/tmp
|
||||
# - ci-tmp:/tmp # agent on k8s
|
||||
- /tmp:/tmp # agent on VM
|
||||
|
||||
services:
|
||||
docker:
|
||||
environment:
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
image: docker:26-dind
|
||||
commands: dockerd --storage-driver=vfs --tls=false --host=tcp://0.0.0.0:2375
|
||||
privileged: true
|
||||
ports:
|
||||
- 2375
|
||||
volumes:
|
||||
- ci-tmp:/tmp
|
||||
# services:
|
||||
# docker:
|
||||
# environment:
|
||||
# DOCKER_TLS_CERTDIR: ""
|
||||
# image: docker:26-dind
|
||||
# commands: dockerd --tls=false --host=tcp://0.0.0.0:2375
|
||||
# privileged: true
|
||||
# ports:
|
||||
# - 2375
|
||||
# # volumes:
|
||||
# # - ci-tmp:/tmp # agent on k8s
|
||||
|
|
|
|||
Loading…
Reference in a new issue