Skip to content
Snippets Groups Projects
Commit 7cb5fa3b authored by Jakob Yanagibashi's avatar Jakob Yanagibashi
Browse files

CI changes after branch removal

parent f6adbd27
No related branches found
No related tags found
No related merge requests found
Pipeline #291158 passed
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment