Use Jenkins for updates
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user