Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tailorbird
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Künstlerische Gestaltung
Tailorbird
Commits
7cb5fa3b
Commit
7cb5fa3b
authored
1 year ago
by
Jakob Yanagibashi
Browse files
Options
Downloads
Patches
Plain Diff
CI changes after branch removal
parent
f6adbd27
No related branches found
No related tags found
No related merge requests found
Pipeline
#291158
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-37
3 additions, 37 deletions
.gitlab-ci.yml
with
3 additions
and
37 deletions
.gitlab-ci.yml
+
3
−
37
View file @
7cb5fa3b
image
:
alpine:edge
image
:
alpine:edge
before_script
:
before_script
:
-
apk --update --no-cache add npm
brotli
git
-
apk --update --no-cache add npm git
-
export COMMIT_TIME=$(git show -s --format=%ct $CI_COMMIT_SHA)
-
export COMMIT_TIME=$(git show -s --format=%ct $CI_COMMIT_SHA)
-
npm ci
-
npm ci
production
:
production
:
script
:
script
:
# Switch to main branch
-
git fetch origin dev
-
git fetch origin main
-
git checkout dev
-
git checkout main
-
git pull
-
git pull
# Build for production
# Build for production
...
@@ -34,37 +33,4 @@ production:
...
@@ -34,37 +33,4 @@ production:
-
git add .
-
git add .
-
git commit -m "New version from ${COMMIT_TIME}"
-
git commit -m "New version from ${COMMIT_TIME}"
-
git push origin main
-
git push origin main
environment
:
name
:
production
url
:
https://tailorbird3d.rwth-aachen.de/
only
:
-
main
when
:
manual
when
:
manual
pages
:
script
:
# Switch to dev branch
-
git fetch origin dev
-
git checkout dev
-
git pull
# Check for favicon updates
-
npm install -g cli-real-favicon
-
real-favicon check-for-update --fail-on-update faviconData.json
# Build for GitLab Pages
-
npm run build-gitlab
-
cp -a dist/. public/
# Compression for GitLab Pages
-
find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -exec gzip -f -k {} \;
-
find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -exec brotli -f -k {} \;
artifacts
:
paths
:
-
public
expire_in
:
"
500"
environment
:
name
:
testing
url
:
https://kg.pages.git-ce.rwth-aachen.de/tailorbird
only
:
-
dev
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