Update .gitlab-ci.yml

This commit is contained in:
Kai Kriegel 2021-12-28 02:21:19 +00:00
parent 447d494f63
commit 59214e28bf

View File

@ -142,6 +142,8 @@ upload:nightly:
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/diflouroborane/nightly"
# rules:
# - if: $CI_COMMIT_TAG
before_script:
- ''
script:
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file target/armv7-unknown-linux-gnueabihf/release/diflouroborane "${PACKAGE_REGISTRY_URL}/diflouroborane-linux-armv7-nightly"
@ -158,6 +160,8 @@ upload:releases:
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/diflouroborane/${CI_COMMIT_TAG}"
rules:
- if: $CI_COMMIT_TAG
before_script:
- ''
script:
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file target/armv7-unknown-linux-gnueabihf/release/diflouroborane "${PACKAGE_REGISTRY_URL}/diflouroborane-linux-armv7-${CI_COMMIT_TAG}"
@ -176,6 +180,8 @@ release:
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/diflouroborane/${CI_COMMIT_TAG}"
rules:
- if: $CI_COMMIT_TAG
before_script:
- ''
script:
- |
release-cli create --name "Release $CI_COMMIT_TAG" --tag-name $CI_COMMIT_TAG \