Files
Dependencies/.onedev-buildspec.yml
2025-05-08 17:55:27 +00:00

45 lines
1.3 KiB
YAML

version: 39
jobs:
- name: Dependency Container for crosslang
steps:
- !CheckoutStep
name: Checkout
cloneCredential: !DefaultCredential {}
withLfs: true
withSubmodules: true
cloneDepth: 1
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !BuildImageStep
name: Build the contianer
output: !RegistryOutput
tags: onedev.site.tesses.net/dependencies/dependencies:latest
registryLogins:
- registryUrl: '@server_url@'
userName: '@job_token@'
passwordSecret: dockersecret
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/riscv64,linux/s390x
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !CommandStep
name: Download powerpc image
runInContainer: true
image: ubuntu:noble
interpreter: !DefaultInterpreter
commands: |
apt update -y
apt install -y wget ca-certificates tar gzip
mkdir -p rootfs
cd rootfs
wget -O wii.tar.gz https://downloads.tesses.net/cache/other/rootfs/wii_linux_rootfs_archpower-latest.tar.gz
tar xvzf wii.tar.gz
rm wii.tar.gz
cd ..
useTTY: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
triggers:
- !BranchUpdateTrigger
projects: Dependencies
retryCondition: never
maxRetries: 3
retryDelay: 30
timeout: 14400