Use Jenkins for updates
Some checks failed
Gitea Organization/dotfiles/pipeline/head This commit looks good
Gitea Organization/dotfiles/pipeline/pr-installer There was a failure building this commit

This commit is contained in:
2023-02-13 20:05:20 +01:00
parent 1c235d1949
commit 208a4e9e79
5 changed files with 35 additions and 48 deletions

4
Jenkinsfile vendored
View File

@@ -10,10 +10,10 @@ pipeline {
TOKEN = credentials('abd7020c-43d6-485b-ae09-2f9b484d9c15')
}
steps {
sh 'apk add pkgconf musl-dev curl'
sh 'apk add pkgconf musl-dev'
sh 'cargo build --release --target x86_64-unknown-linux-musl'
sh 'cp target/x86_64-unknown-linux-musl/release/dotfiles_installer ./installer-amd64'
sh 'curl -H "Authorization: token ${TOKEN_PSW}" --upload-file ./installer-amd64 https://gitea.mattv.de/api/packages/root/generic/installer/${GIT_COMMIT}/installer-amd64'
archiveArtifacts artifacts: 'installer-amd64', allowEmptyArchive: false, onlyIfSuccessful: true
}
}
}