Updated to jenkins and gitea #4

Merged
root merged 18 commits from jenkins into installer 2023-02-12 22:36:02 +00:00
Showing only changes of commit 5ad952d37e - Show all commits

4
Jenkinsfile vendored
View File

@ -7,11 +7,13 @@ pipeline {
}
environment {
RUSTFLAGS = '-C target-feature=+crt-static -C link-self-contained=yes -C link-arg=-s'
TOKEN = credentials('00912d76-da44-4f04-890f-b11180e7a68f')
}
steps {
sh 'apk add pkgconf musl-dev curl'
sh 'cargo build --release --target x86_64-unknown-linux-musl'
sh 'ls -la'
sh 'cp target/x86_64-unknown-linux-musl/release/dotfiles_installer ./installer-amd64'
sh 'curl --user root:${TOKEN} --upload-file ./installer-amd64 https://gitea.mattv.de/api/packages/root/generic/installer/${BUILD_NUMBER}/installer-amd64'
}
}
}