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: stages:
- build - build
build: .build:
image: debian:stable-slim image: debian:stable-slim
stage: build stage: build
before_script: before_script:
@ -10,11 +10,18 @@ build:
script: script:
- cd ~/.fg42/ && fg42 -nw --script build.el - cd ~/.fg42/ && fg42 -nw --script build.el
build-branches:
extends: .build
only:
- branches
except:
- tags
build-package: build-package:
extends: build extends: .build
script: script:
- cd ~/.fg42/ && fg42 -nw --script build.el - 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: artifacts:
when: on_success when: on_success
paths: paths: