removed .gitlab-ci.yml, added gate step
This commit is contained in:
@@ -7,6 +7,13 @@ platform:
|
|||||||
arch: arm
|
arch: arm
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: gate
|
||||||
|
image: bdebyl/alpine-git
|
||||||
|
commands:
|
||||||
|
- git fetch origin +refs/heads/master
|
||||||
|
- git show-ref
|
||||||
|
- git diff --name-only HEAD~1..HEAD | grep -v '.drone.yml\|LICENSE\|README.md\|.gitignore\|Makefile' || exit 78
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: bdebyl/hugo
|
image: bdebyl/hugo
|
||||||
commands:
|
commands:
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
stages:
|
|
||||||
- build
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
variables:
|
|
||||||
HUGO_IMAGE_TAG: "arm"
|
|
||||||
AWS_IMAGE_TAG: "0.2"
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- rm -rf themes/even
|
|
||||||
- git clone https://gitlab.com/bdebyl/hugo-theme-even.git themes/even
|
|
||||||
|
|
||||||
build:
|
|
||||||
stage: build
|
|
||||||
script:
|
|
||||||
- make -e build
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
stage: deploy
|
|
||||||
script:
|
|
||||||
- make -e deploy cache
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
Reference in New Issue
Block a user