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
|
# ref: https://github.com/woodpecker-ci/woodpecker/discussions/2721
|
||||||
- name: Build
|
- 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
|
privileged: true
|
||||||
environment:
|
environment:
|
||||||
DOCKER_HOST: tcp://docker:2375
|
DOCKER_HOST: tcp://docker:2375
|
||||||
commands: |
|
commands: |
|
||||||
docker info
|
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
|
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
|
apk add -q --no-cache py3-pip make just aws-cli docker-compose
|
||||||
pip3 install -q b2 --break-system-packages
|
pip3 install -q b2 --break-system-packages
|
||||||
just build-r-${PLATFORM} $(cat r-release-version.txt)
|
just build-r-${PLATFORM} $(cat r-release-version.txt)
|
||||||
fi
|
fi
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock # agent on VM
|
||||||
|
- /tmp:/tmp # agent on VM
|
||||||
|
|
||||||
- name: Upload
|
- name: Upload
|
||||||
image: pats22/s3-plugin:latest
|
image: pats22/s3-plugin:latest
|
||||||
|
|
@ -84,16 +87,17 @@ steps:
|
||||||
endpoint: s3.eu-central-003.backblazeb2.com
|
endpoint: s3.eu-central-003.backblazeb2.com
|
||||||
overwrite: false
|
overwrite: false
|
||||||
volumes:
|
volumes:
|
||||||
- ci-tmp:/tmp
|
# - ci-tmp:/tmp # agent on k8s
|
||||||
|
- /tmp:/tmp # agent on VM
|
||||||
|
|
||||||
services:
|
# services:
|
||||||
docker:
|
# docker:
|
||||||
environment:
|
# environment:
|
||||||
DOCKER_TLS_CERTDIR: ""
|
# DOCKER_TLS_CERTDIR: ""
|
||||||
image: docker:26-dind
|
# image: docker:26-dind
|
||||||
commands: dockerd --storage-driver=vfs --tls=false --host=tcp://0.0.0.0:2375
|
# commands: dockerd --tls=false --host=tcp://0.0.0.0:2375
|
||||||
privileged: true
|
# privileged: true
|
||||||
ports:
|
# ports:
|
||||||
- 2375
|
# - 2375
|
||||||
volumes:
|
# # volumes:
|
||||||
- ci-tmp:/tmp
|
# # - ci-tmp:/tmp # agent on k8s
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue