Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Letha Bae
Whirly Tanks
Commits
c9dd4c0c
Commit
c9dd4c0c
authored
3 years ago
by
Letha Bae
Browse files
Options
Download
Email Patches
Plain Diff
Update preview.jpg, .gitlab-ci.yml, .gitattributes
parent
e8314d29
Pipeline
#47
passed with stages
in 1 minute and 40 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitattributes
+2
-0
.gitattributes
.gitlab-ci.yml
+54
-0
.gitlab-ci.yml
preview.jpg
+0
-0
preview.jpg
with
56 additions
and
0 deletions
+56
-0
.gitattributes
0 → 100644
+
2
-
0
View file @
c9dd4c0c
*.udk filter=lfs diff=lfs merge=lfs -text
*.upk filter=lfs diff=lfs merge=lfs -text
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
0 → 100644
+
54
-
0
View file @
c9dd4c0c
stages
:
-
build
-
upload
-
release
build
:
stage
:
build
rules
:
-
if
:
$CI_COMMIT_TAG
script
:
-
cd ./
-
zip -r ${CI_PROJECT_NAME}.zip *upk *udk
artifacts
:
paths
:
-
${CI_PROJECT_NAME}.zip
expire_in
:
1 day
# Refer to: https://gitlab.com/gitlab-org/release-cli/-/tree/master/docs/examples/release-assets-as-generic-package/
upload
:
stage
:
upload
image
:
curlimages/curl:latest
rules
:
-
if
:
$CI_COMMIT_TAG
script
:
-
|
PACKAGE_REGISTRY_URL="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_TAG}"
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${CI_PROJECT_NAME}.zip ${PACKAGE_REGISTRY_URL}/${CI_PROJECT_NAME}.zip
echo 'Package uploaded!'
-
|
PACKAGE_REGISTRY_URL="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_TAG}"
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file *.jpg ${PACKAGE_REGISTRY_URL}/${CI_PROJECT_NAME}.jpg
echo 'Package uploaded!'
# Refer to: https://gitlab.com/gitlab-org/release-cli/-/tree/master/docs#using-this-tool-in-gitlab-ci
release
:
stage
:
release
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
rules
:
-
if
:
$CI_COMMIT_TAG
script
:
-
|
PACKAGE_REGISTRY_URL="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_TAG}"
-
>
release-cli create
--name "$CI_PROJECT_TITLE"
--description "Release of $CI_COMMIT_TAG from $CI_PROJECT_NAME"
--tag-name "$CI_COMMIT_TAG"
--assets-link "{\"name\":\"${CI_PROJECT_NAME}.zip\",\"url\":\"${PACKAGE_REGISTRY_URL}/${CI_PROJECT_NAME}.zip\"}"
--assets-link "{\"name\":\"Release Photo\",\"url\":\"${PACKAGE_REGISTRY_URL}/${CI_PROJECT_NAME}.jpg\",\"link_type\":\"image\"}"
-
|
echo 'Created released of ${CI_PROJECT_NAME}!'
This diff is collapsed.
Click to expand it.
preview.jpg
0 → 100644
+
0
-
0
View file @
c9dd4c0c
95.2 KB
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help