Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
更新.gitlab-ci.yml文件
Browse files Browse the repository at this point in the history
  • Loading branch information
辛巳流火 committed Jul 28, 2022
1 parent 8e671ef commit f9775b8
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@ stages:
- upload
- release

variables:
# Package version can only contain numbers (0-9), and dots (.).
# Must be in the format of X.Y.Z, i.e. should match /\A\d+\.\d+\.\d+\z/ regular expresion.
# See https://docs.gitlab.com/ee/user/packages/generic_packages/#publish-a-package-file
PACKAGE_VERSION: "${git describe --long}"
LINUX_AMD64_BINARY: "earth-wallpaper-amd64.deb"
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/earth_wallpaper/${PACKAGE_VERSION}"


build:
stage: build
Expand All @@ -33,6 +25,13 @@ build:
upload:
stage: upload
image: curlimages/curl:latest
variables:
# Package version can only contain numbers (0-9), and dots (.).
# Must be in the format of X.Y.Z, i.e. should match /\A\d+\.\d+\.\d+\z/ regular expresion.
# See https://docs.gitlab.com/ee/user/packages/generic_packages/#publish-a-package-file
PACKAGE_VERSION: "${CI_COMMIT_TAG}"
LINUX_AMD64_BINARY: "earth-wallpaper-amd64.deb"
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/earth_wallpaper/${PACKAGE_VERSION}"
rules:
- if: $CI_COMMIT_TAG
script:
Expand All @@ -44,6 +43,13 @@ release:
# https://gitlab.com/gitlab-org/gitlab/-/issues/299384
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
variables:
# Package version can only contain numbers (0-9), and dots (.).
# Must be in the format of X.Y.Z, i.e. should match /\A\d+\.\d+\.\d+\z/ regular expresion.
# See https://docs.gitlab.com/ee/user/packages/generic_packages/#publish-a-package-file
PACKAGE_VERSION: "${CI_COMMIT_TAG}"
LINUX_AMD64_BINARY: "earth-wallpaper-amd64.deb"
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/earth_wallpaper/${PACKAGE_VERSION}"
rules:
- if: $CI_COMMIT_TAG
script:
Expand Down

0 comments on commit f9775b8

Please sign in to comment.