converted build job to a template job

This commit is contained in:
Sameer Rahmani 2020-03-17 10:56:25 +00:00
parent fcd4829e3c
commit 6a24ba3430
1 changed files with 10 additions and 3 deletions

View File

@ -1,7 +1,7 @@
stages:
- build
build:
.build:
image: debian:stable-slim
stage: build
before_script:
@ -10,11 +10,18 @@ build:
script:
- cd ~/.fg42/ && fg42 -nw --script build.el
build-branches:
extends: .build
only:
- branches
except:
- tags
build-package:
extends: build
extends: .build
script:
- cd ~/.fg42/ && fg42 -nw --script build.el
- cd && tar zcf fg42.$CI_COMMIT_TAG.tar.gz ~/.fg42/
- cd && tar zcf ~/fg42.$CI_COMMIT_TAG.tar.gz ~/.fg42/
artifacts:
when: on_success
paths: