Verified Commit 1a413677 authored by madhead's avatar madhead

Simple CI/CD

parent 54583acd
Pipeline #65284453 failed with stages
in 5 minutes and 39 seconds
Saberlight app
......@@ -9,7 +9,7 @@ repositories {
kotlin {
linuxArm32Hfp("raspberrypi") {
binaries {
executable {
executable("saberlight") {
entryPoint = "by.dev.madhead.saberlight.main"
}
}
......
CI/CD, infrastructure and deployment scripts
stages:
- Build
- Test
- Deploy
build:
stage: Build
image: openjdk:12
dependencies: []
script:
- ./gradlew clean assemble
artifacts:
paths:
- app/build/bin/raspberrypi/saberlightReleaseExecutable/saberlight.kexe
expire_in: '43200'
gradle-version:
stage: Test
image: openjdk:12
dependencies: []
script:
- gradle_version=$(./gradlew --version | sed -rn 's/^Gradle (.+)$/\1/p')
- latest_gradle_version=$(curl https://services.gradle.org/versions/current | python2 -c 'import json,sys;print json.load(sys.stdin)["version"]')
- echo $gradle_version
- echo $latest_gradle_version
- '[[ $gradle_version == $latest_gradle_version ]]'
allow_failure: true
deploy:
tags:
- raspberrypi-1
stage: Deploy
dependencies:
- build
script:
- mkdir /opt/saberlight
- cp app/build/bin/raspberrypi/saberlightReleaseExecutable/saberlight.kexe /opt/saberlight/saberlight
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment