mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
Merge branch 'deploy' into 'main'
testing upload and release See merge request ahoneybun/nyxi-installer!25
This commit is contained in:
commit
fa5953931e
1 changed files with 32 additions and 3 deletions
|
@ -1,6 +1,11 @@
|
|||
stages:
|
||||
- test
|
||||
- build
|
||||
- upload
|
||||
- release
|
||||
|
||||
variables:
|
||||
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/nyxi-installer/${CI_COMMIT_TAG}"
|
||||
|
||||
test:
|
||||
stage: test
|
||||
|
@ -18,8 +23,32 @@ build:
|
|||
- apt update -m
|
||||
- apt install -y libfdisk-dev libclang-19-dev
|
||||
script:
|
||||
- cargo build --release --verbose
|
||||
- chmod +x /builds/ahoneybun/nyxi-installer/target/release/nyxi-installer
|
||||
- cargo build --release
|
||||
- mkdir bin
|
||||
- mv /builds/ahoneybun/nyxi-installer/target/release/nyxi-installer /bin/nyxi-installer
|
||||
- chmod +x /bin/nyxi-installer
|
||||
cache:
|
||||
paths:
|
||||
- target/release/
|
||||
artifacts:
|
||||
paths:
|
||||
- /builds/ahoneybun/nyxi-installer/target/release/nyxi-installer
|
||||
- bin
|
||||
|
||||
upload:
|
||||
stage: upload
|
||||
image: curlimages/curl:latest
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
script:
|
||||
- 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file bin/nyxi-installer ${PACKAGE_REGISTRY_URL}/nyxi-installer'
|
||||
|
||||
release:
|
||||
stage: release
|
||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
script:
|
||||
- echo "running release_job"
|
||||
release:
|
||||
tag_name: '$CI_COMMIT_TAG'
|
||||
description: '$CI_COMMIT_TAG'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue