Files
Dependencies/.onedev-buildspec.yml
2025-05-08 19:04:56 +00:00

56 lines
1.6 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-rootfs.tar.gz
tar xvzf wii.tar.gz
rm wii.tar.gz
cd ..
useTTY: true
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
- !BuildImageStep
name: Build the contianer
dockerfile: Dockerfile.arch-ppc
output: !RegistryOutput
tags: onedev.site.tesses.net/dependencies/dependencies-arch:latest
registryLogins:
- registryUrl: '@server_url@'
userName: '@job_token@'
passwordSecret: dockersecret
platforms: linux/ppc
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
triggers:
- !BranchUpdateTrigger
projects: Dependencies
retryCondition: never
maxRetries: 3
retryDelay: 30
timeout: 14400