parch-iso-cosmic/.gitlab-ci.yml

28 lines
572 B
YAML
Raw Normal View History

2024-08-30 23:18:57 +03:30
stages:
- build
2024-09-13 03:01:21 +03:30
- release
2024-08-30 23:18:57 +03:30
image: archlinux/archlinux:base-devel
archiso:
stage: build
script:
2024-09-05 17:44:38 +03:30
- ./build.sh
2024-08-30 23:21:10 +03:30
rules:
2024-09-13 03:03:22 +03:30
- if: $CI_COMMIT_TAG
2024-08-30 23:18:57 +03:30
2024-09-13 03:01:21 +03:30
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:
2024-09-13 03:03:22 +03:30
- if: $CI_COMMIT_TAG
2024-09-13 03:01:21 +03:30
dependencies:
2024-09-13 03:03:22 +03:30
- archiso
2024-08-30 23:21:10 +03:30