Skip to content
Snippets Groups Projects
Commit b9030ec7 authored by Wumbo's avatar Wumbo
Browse files

Initial commit

parents
Branches master
No related merge requests found
Pipeline #1035 passed with stages
in 1 minute and 14 seconds
variables:
COMPONENT_NAME: "theme-modernlight"
NEXUS_REPO: "components"
META_NAME: "Modern Light"
META_DESCRIPTION: "A modern light theme."
include:
- project: 'flashpoint/docker/nexus-deploy-action'
ref: main
file: '/docker-build.gitlab-ci.yml'
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
deploy:
stage: build
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script: |
COMP_FILE=${COMPONENT_NAME}.zip
COMP_JSON=${COMPONENT_NAME}.json
zip -r $COMP_FILE ./ -x "./.**"
jq --null-input \
--arg name "$META_NAME" \
--arg desc "$META_DESCRIPTION" \
--arg date $(date +%s) \
--arg download $(du -b $COMP_FILE | awk '{print $1}') \
--arg install $(7z l $COMP_FILE | tail -n 1 | awk '{print $3}') \
--arg path "Data/Themes" \
--arg hash $(crc32 $COMP_FILE) \
'{
"title": $name,
"description": $desc,
"date-modified": $date,
"download-size": $download,
"install-size": $install,
"path": $path,
"crc32": $hash
}' > $COMP_JSON
zip artifact.zip $COMP_FILE $COMP_JSON
artifacts:
paths:
- artifact.zip
ModernLightTheme/img/cross.png

14.9 KiB

ModernLightTheme/img/max.png

14.9 KiB

ModernLightTheme/img/min.png

14.9 KiB

This diff is collapsed.
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment