I was doing onedev all wrong
This commit is contained in:
@ -8,14 +8,28 @@ jobs:
|
|||||||
withLfs: true
|
withLfs: true
|
||||||
withSubmodules: false
|
withSubmodules: false
|
||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
|
- !CommandStep
|
||||||
|
name: Execute build
|
||||||
|
runInContainer: true
|
||||||
|
image: onedev.site.tesses.net/dependencies/x86_64:latest
|
||||||
|
interpreter: !DefaultInterpreter
|
||||||
|
commands: |
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake -S .. -B .
|
||||||
|
make -j12
|
||||||
|
make install DESTDIR=out
|
||||||
|
useTTY: true
|
||||||
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
- !BuildImageStep
|
- !BuildImageStep
|
||||||
name: Build Docker Image
|
name: Build Docker Image
|
||||||
|
dockerfile: Dockerfile.run
|
||||||
output: !RegistryOutput
|
output: !RegistryOutput
|
||||||
tags: onedev.site.tesses.net/tesses-framework/tesses-framework:latest
|
tags: onedev.site.tesses.net/tesses-framework/tesses-framework:latest
|
||||||
registryLogins:
|
registryLogins:
|
||||||
- registryUrl: '@server_url@'
|
- registryUrl: '@server_url@'
|
||||||
userName: '@job_token@'
|
userName: '@job_token@'
|
||||||
passwordSecret: 'dockersecret'
|
passwordSecret: dockersecret
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
triggers:
|
triggers:
|
||||||
|
|||||||
2
Dockerfile.run
Normal file
2
Dockerfile.run
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
FROM onedev.site.tesses.net/dependencies/x86_64:latest
|
||||||
|
COPY build/out /
|
||||||
Reference in New Issue
Block a user