32 lines
841 B
YAML
32 lines
841 B
YAML
stages:
|
|
- build
|
|
- deploy
|
|
|
|
build:
|
|
stage: build
|
|
tags: ["build"]
|
|
script:
|
|
#tar -zcvf www.makepostsell.com.tar.gz output
|
|
- rm -rf .git
|
|
- cd ..; tar -zcvf www.makepostsell.com.tar.gz www.makepostsell.com; mv www.makepostsell.com.tar.gz www.makepostsell.com; cd www.makepostsell.com
|
|
# create sha512 of www.makepostsell.com.tar.gz
|
|
- sha512sum www.makepostsell.com.tar.gz >> www.makepostsell.com.tar.gz.hash
|
|
# create commit-hash.txt to track this build's git commit hash.
|
|
- echo $CI_COMMIT_SHA >> commit-hash.txt
|
|
|
|
|
|
artifacts:
|
|
paths:
|
|
- www.makepostsell.com.tar.gz
|
|
- www.makepostsell.com.tar.gz.hash
|
|
- commit-hash.txt
|
|
#expire_in: 1 month
|
|
|
|
trigger_deploy:
|
|
stage: deploy
|
|
trigger:
|
|
include:
|
|
- local: .gitlab-ci-deploy.yml
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
|
|