fixed cosmic
This commit is contained in:
parent
0f244bceb9
commit
07b0d66092
2 changed files with 21 additions and 7 deletions
|
@ -1,17 +1,31 @@
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- release
|
||||||
|
|
||||||
image: archlinux/archlinux:base-devel
|
image: archlinux/archlinux:base-devel
|
||||||
|
|
||||||
|
# Build stage to generate ISO
|
||||||
archiso:
|
archiso:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- ./build.sh
|
- ./build.sh
|
||||||
rules:
|
rules:
|
||||||
when: manual
|
- if: $CI_COMMIT_TAG # Only run on new tag
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- out/*.iso
|
|
||||||
expire_in: 1 week
|
|
||||||
|
|
||||||
|
# Release stage to create a GitLab release and upload ISO
|
||||||
|
release:
|
||||||
|
stage: release
|
||||||
|
script:
|
||||||
|
- echo "Creating GitLab release for tag $CI_COMMIT_TAG"
|
||||||
|
- |
|
||||||
|
curl --header "PRIVATE-TOKEN: $CI_JOB_TOKEN" \
|
||||||
|
--data "name=Release $CI_COMMIT_TAG&tag_name=$CI_COMMIT_TAG&ref=$CI_COMMIT_SHA" \
|
||||||
|
--upload-file "out/*.iso" \
|
||||||
|
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/releases"
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_TAG # Only run on new tag
|
||||||
|
dependencies:
|
||||||
|
- archiso # Get the built ISO from the previous job
|
||||||
|
only:
|
||||||
|
- tags # Only trigger on tags
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ LocalFileSigLevel = Optional
|
||||||
|
|
||||||
[ppr]
|
[ppr]
|
||||||
SigLevel = Optional TrustedOnly
|
SigLevel = Optional TrustedOnly
|
||||||
Server = https://raw.githubusercontent.com/parchlinux/ppr/main/x86_64/
|
Server = https://mirror.parchlinux.com/repos/$repo/$arch
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
@ -96,7 +96,7 @@ Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[pcp]
|
[pcp]
|
||||||
SigLevel = Optional TrustedOnly
|
SigLevel = Optional TrustedOnly
|
||||||
Server = https://raw.githubusercontent.com/parchlinux/pcp/main/x86_64/
|
Server = https://mirror.parchlinux.com/repos/$repo/$arch
|
||||||
|
|
||||||
|
|
||||||
# An example of a custom package repository. See the pacman manpage for
|
# An example of a custom package repository. See the pacman manpage for
|
||||||
|
|
Loading…
Add table
Reference in a new issue