From 85631ea6d4499e642205645f5e92318a5101611c Mon Sep 17 00:00:00 2001 From: Paul Traina <216482-pleasantone@users.noreply.gitlab.com> Date: Tue, 3 Nov 2020 17:40:43 -0800 Subject: [PATCH] Don't run any stages without being triggered by tags. --- .gitlab-ci.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b243385..02ea2f1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,14 +1,19 @@ # This file is a template, and might need editing before it works on your project. # see https://docs.gitlab.com/ee/ci/yaml/README.html for all available options -image: debian:stable +variables: + DEFAULT_IMAGE: debian:stable + +default: + image: ${DEFAULT_IMAGE} + interruptible: true + only: + - tags before_script: - echo "Before script section" - echo "For example you might run an update here or install a build dependency" - echo "Or perhaps you might print out some debugging details" - - apt-get update - - apt-get -y install git dh-make build-essential autoconf autotools-dev after_script: - echo "After script section" @@ -16,13 +21,13 @@ after_script: build1: stage: build - only: - - tags artifacts: paths: - build/* script: - echo "Do your build here" + - apt-get update + - apt-get -y install git dh-make build-essential autoconf autotools-dev - cp LICENSE debian/copyright - apt-get -y build-dep . - dpkg-buildpackage -uc -us