add alpine

This commit is contained in:
Patrick Schratz 2024-08-26 10:27:32 +02:00
commit 6564fd499f
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -13,6 +13,8 @@ matrix:
PLATFORM_ID: 2404
- PLATFORM: opensuse-155
PLATFORM_ID: suse155
- PLATFORM: alpine-320
PLATFORM_ID: alpine320
steps:
# Ensures that we're always using the latest available upstream build chain
@ -33,7 +35,7 @@ steps:
commands:
- apk add -q --no-cache curl
- curl -s https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/r/r.rb | grep -o 'R-[0-9]*\.[0-9]*\.[0-9]*' | tr -d 'R-' | tr -d '"' > r-release-version.txt
# - echo "3.6.3" > r-release-version.txt
# - echo "4.3.3" > r-release-version.txt
- cat r-release-version.txt
backend_options:
kubernetes:
@ -50,14 +52,14 @@ steps:
- name: Check if files for R version already exist in s3
environment:
AWS_ACCESS_KEY_ID:
from_secret: b2_application_key_id
from_secret: aws_access_key_id
AWS_SECRET_ACCESS_KEY:
from_secret: b2_application_key
AWS_ENDPOINT_URL: https://s3.eu-central-003.backblazeb2.com
from_secret: aws_secret_access_key
AWS_REGION: eu-central-2
image: alpine:3.20
commands:
- apk add -q --no-cache aws-cli
- aws s3 ls s3://devxy-r-builds/${PLATFORM_ID}/ | tail -1 | awk '{print $NF}' | cut -c 3-7 > r_build_latest.txt
- aws s3 ls s3://devxy-rbuilds/${PLATFORM_ID}/ | tail -1 | awk '{print $NF}' | cut -c 3-7 > r_build_latest.txt
- cat r_build_latest.txt
backend_options:
kubernetes:
@ -100,23 +102,23 @@ steps:
# - /tmp:/tmp # agent on VM
- name: Upload
image: pats22/s3-plugin:latest
image: woodpeckerci/plugin-s3:1.3.0
pull: true
settings:
bucket: devxy-r-builds
bucket: devxy-rbuilds
strip_prefix: /tmp/${PLATFORM}/
source: /tmp/${PLATFORM}/*
target: ${PLATFORM_ID}/
region: eu-central-003
acl: public-read
region: eu-central-2
# acl: public-read
access_key:
from_secret: b2_application_key_id
from_secret: aws_access_key_id
secret_key:
from_secret: b2_application_key
endpoint: s3.eu-central-003.backblazeb2.com
from_secret: aws_secret_access_key
# endpoint: s3.eu-central-003.backblazeb2.com
overwrite: false
volumes:
- ci-tmp-fsn1:/tmp # agent on k8s
- ci-tmp-rwx:/tmp # agent on k8s
# - /tmp:/tmp # agent on VM
backend_options:
kubernetes:
@ -140,8 +142,9 @@ services:
ports:
- 2375
volumes:
- ci-tmp-fsn1:/tmp # agent on k8s
- ci-tmp-rwx:/tmp # agent on k8s
backend_options:
kubernetes:
nodeSelector:
kubernetes.io/arch: "arm64"
topology.kubernetes.io/region: fsn1