diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index be5b49a..dfe1cc0 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -3,16 +3,16 @@ when: matrix: include: - - PLATFORM: rhel-9 - PLATFORM_ID: el9 - - PLATFORM: centos-8 - PLATFORM_ID: el8 - - PLATFORM: ubuntu-2204 - PLATFORM_ID: 2204 - - PLATFORM: ubuntu-2404 - PLATFORM_ID: 2404 - - PLATFORM: opensuse-155 - PLATFORM_ID: suse155 + # - PLATFORM: rhel-9 + # PLATFORM_ID: el9 + # - PLATFORM: centos-8 + # PLATFORM_ID: el8 + # - PLATFORM: ubuntu-2204 + # PLATFORM_ID: 2204 + # - PLATFORM: ubuntu-2404 + # PLATFORM_ID: 2404 + # - PLATFORM: opensuse-155 + # PLATFORM_ID: suse155 - PLATFORM: alpine-320 PLATFORM_ID: alpine320 @@ -52,14 +52,15 @@ steps: - name: Check if files for R version already exist in s3 environment: AWS_ACCESS_KEY_ID: - from_secret: aws_access_key_id + from_secret: b2_application_key AWS_SECRET_ACCESS_KEY: - from_secret: aws_secret_access_key + from_secret: b2_application_key_id AWS_REGION: eu-central-2 + AWS_ENDPOINT: s3.eu-central-003.backblazeb2.com image: alpine:3.20 commands: - apk add -q --no-cache aws-cli - - aws s3 ls s3://devxy-rbuilds/${PLATFORM_ID}/ | tail -1 | awk '{print $NF}' | cut -c 3-7 > r_build_latest.txt + - aws s3 ls s3://devxy-r-builds/${PLATFORM_ID}/ | tail -1 | awk '{print $NF}' | cut -c 3-7 > r_build_latest.txt - cat r_build_latest.txt backend_options: kubernetes: @@ -67,55 +68,51 @@ steps: topology.kubernetes.io/region: fsn1 # ref: https://github.com/woodpecker-ci/woodpecker/discussions/2721 - - name: Build - # 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 - 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 - backend_options: - kubernetes: - resources: - requests: - memory: 200Mi - cpu: 500m - limits: - memory: 1000Mi - cpu: 4000m - nodeSelector: - kubernetes.io/arch: "arm64" - topology.kubernetes.io/region: fsn1 - tolerations: - - key: "CI" - operator: "Equal" - value: "true" - effect: "NoSchedule" - # volumes: - # - /var/run/docker.sock:/var/run/docker.sock # agent on VM - # - /tmp:/tmp # agent on VM + # - name: Build + # image: alpine:3.20 + # privileged: true + # environment: + # DOCKER_HOST: tcp://docker:2375 + # commands: | + # # docker info + # 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 + # backend_options: + # kubernetes: + # resources: + # requests: + # memory: 200Mi + # cpu: 500m + # limits: + # memory: 1000Mi + # cpu: 4000m + # nodeSelector: + # kubernetes.io/arch: "arm64" + # topology.kubernetes.io/region: fsn1 + # tolerations: + # - key: "CI" + # operator: "Equal" + # value: "true" + # effect: "NoSchedule" - name: Upload image: woodpeckerci/plugin-s3:1.3.0 pull: true settings: - bucket: devxy-rbuilds + bucket: devxy-r-builds strip_prefix: /tmp/${PLATFORM}/ source: /tmp/${PLATFORM}/* target: ${PLATFORM_ID}/ - region: eu-central-2 - # acl: public-read + region: s3.eu-central-003 + acl: public-read access_key: - from_secret: aws_access_key_id + from_secret: b2_application_key_id secret_key: - from_secret: aws_secret_access_key - # endpoint: s3.eu-central-003.backblazeb2.com + from_secret: b2_application_key + endpoint: s3.eu-central-003.backblazeb2.com overwrite: false volumes: - ci-tmp-rwx:/tmp # agent on k8s