Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KSZK Status Angular
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
DevTeam
KSZK Status
KSZK Status Angular
Commits
813fc7a3
Commit
813fc7a3
authored
May 21, 2021
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
release pipeline
parent
bd809372
No related branches found
No related tags found
No related merge requests found
Pipeline
#8078
canceled
May 21, 2021
Stage: build
Stage: docker
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+36
-0
36 additions, 0 deletions
.gitlab-ci.yml
package-lock.json
+16241
-11
16241 additions, 11 deletions
package-lock.json
release.sh
+8
-0
8 additions, 0 deletions
release.sh
with
16285 additions
and
11 deletions
.gitlab-ci.yml
+
36
−
0
View file @
813fc7a3
...
...
@@ -7,6 +7,8 @@ include:
stages
:
-
build
-
upload
-
release
-
docker
-
deploy
...
...
@@ -18,6 +20,10 @@ compile:
-
npm ci
script
:
-
ng build --prod
-
zip -r dist.zip dist/kszk-status-angular
only
:
-
tags
-
master
artifacts
:
expire_in
:
1 day
paths
:
...
...
@@ -27,9 +33,39 @@ dockerhub:
extends
:
.docker-build-dockerhub
stage
:
docker
tags
:
[
docker
]
needs
:
-
compile
only
:
-
tags
-
master
variables
:
IMAGE_NAME
:
rlacko58/kszk-status-angular
IMAGE_TAG
:
$CI_COMMIT_SHORT_SHA
########################################## Release ##########################################
upload
:
stage
:
upload
image
:
curlimages/curl:latest
only
:
-
tags
needs
:
-
compile
script
:
-
curl --header "PRIVATE-TOKEN:$CI_RELEASE_TOKEN" --upload-file "dist.zip" "${PACKAGE_REGISTRY_URL}/dist.zip"
-
echo "dist.zip" > ../files.txt
artifacts
:
paths
:
-
files.txt
release
:
stage
:
release
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
only
:
-
tags
needs
:
-
upload
before_script
:
-
apk add bash
script
:
-
./release.sh
This diff is collapsed.
Click to expand it.
package-lock.json
+
16241
−
11
View file @
813fc7a3
Source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
release.sh
0 → 100644
+
8
−
0
View file @
813fc7a3
#!/bin/bash -v
assets
=()
while
read
-r
f
;
do
assets+
=(
" --assets-link {
\"
name
\"
:
\"
$f
\"
,
\"
url
\"
:
\"
${
PACKAGE_REGISTRY_URL
}
/
$f
\"
}"
)
done
< files.txt
release-cli create
--name
"Version
$CI_COMMIT_TAG
"
--tag-name
"
$CI_COMMIT_TAG
"
$(
printf
"%b"
"
${
assets
[@]
}
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment