debian-mirror-gitlab/lib/gitlab/ci/templates/ThemeKit.gitlab-ci.yml

30 lines
800 B
YAML
Raw Normal View History

2022-06-21 17:19:12 +05:30
# Shopify Theme Kit is a CLI tool for Shopify Themes: https://shopify.github.io/themekit/
# See the full usage of this template described in: https://medium.com/@gogl.alex/how-to-deploy-shopify-themes-automatically-1ac17ee1229c
image: python:2
stages:
- deploy:staging
- deploy:production
staging:
2023-01-13 00:05:48 +05:30
environment: staging
2022-06-21 17:19:12 +05:30
image: python:2
stage: deploy:staging
script:
- curl -s https://shopify.github.io/themekit/scripts/install.py | python
- theme deploy --env=staging
only:
variables:
- $CI_DEFAULT_BRANCH == $CI_COMMIT_BRANCH
production:
2023-01-13 00:05:48 +05:30
environment: production
2022-06-21 17:19:12 +05:30
image: python:2
stage: deploy:production
script:
- curl -s https://shopify.github.io/themekit/scripts/install.py | python
- theme deploy --env=production --allow-live
only:
- tags