set platform

This commit is contained in:
Patrick Schratz 2024-07-06 17:10:31 +02:00
commit 76bc8d0a6d
Signed by: pat-s
GPG key ID: 3C6318841EF78925
2 changed files with 2 additions and 34 deletions

View file

@ -56,13 +56,12 @@ steps:
environment:
DOCKER_HOST: tcp://docker:2375
commands: |
docker --version
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:
# - ci-tmp:/tmp
- name: Upload
image: pats22/s3-plugin:latest
@ -83,38 +82,6 @@ steps:
volumes:
- ci-tmp:/tmp
# - name: Upload to S3
# image: alpine:3.20
# secrets:
# [
# aws_access_key_id_cynkra,
# aws_secret_access_key_cynkra,
# b2_application_key,
# b2_application_key_id,
# ]
# environment:
# # AWS_ACCESS_KEY_ID:
# # from_secret: aws_access_key_id_cynkra
# # AWS_SECRET_ACCESS_KEY:
# # from_secret: aws_secret_access_key_cynkra
# AWS_ACCESS_KEY_ID:
# from_secret: b2_application_key
# AWS_SECRET_ACCESS_KEY:
# from_secret: b2_application_key_id
# AWS_ENDPOINT_URL: s3.eu-central-003.backblazeb2.com
# commands: |
# apk add -q --no-cache bash aws-cli
# if [ "$(ls -A /tmp/${PLATFORM}/)" ]; then
# for file in /tmp/${PLATFORM}/*; do
# aws s3 cp --acl public-read --no-progress "$file" "s3://devxy-r-builds/${PLATFORM_ID}/"
# done
# rm -f /tmp/${PLATFORM}/*
# else
# echo "No files to upload."
# fi
# volumes:
# - /tmp:/tmp
services:
docker:
environment:

View file

@ -96,6 +96,7 @@ services:
volumes:
- /tmp/centos-8:/tmp/output/centos-8
rhel-9:
platform: linux/arm64/v8
command: ./build.sh
environment:
- R_VERSION=${R_VERSION}