commit 3f79dc6ca3a703055d2b8de4d7271563548161e6 parent def515c478920870175f5990fb7ade3a3de10cf5 Author: Vetle Haflan <vetle@haflan.dev> Date: Thu, 28 Jan 2021 00:01:31 +0100 Add .gitlab-ci.yml for building releases Diffstat:
A | .gitlab-ci.yml | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml @@ -0,0 +1,10 @@ +# Build release. +# Version number is on format vX.Y where X is a breaking change and Y is a new feature or patch +build_release: + script: + - docker build --no-cache -t d.haflan.dev/general/lipre:1 -t d.haflan.dev/general/lipre:${CI_COMMIT_TAG:1} . + - docker push d.haflan.dev/general/lipre --all-tags + only: + - /^v\d+\.\d+/ + except: + - branches