diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0552d71b99ce8f839b8e547b6a1085148bc5fafa..26031c3b790eccdfbd65989ca1b5d074a13b6bf6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -31,7 +31,7 @@ stages:
   tags:
     - docker
   image: continuumio/conda-concourse-ci
-  before_build:
+  before_script:
     - rm -f /root/.condarc
   artifacts:
     paths:
@@ -96,7 +96,7 @@ build_macosx_37:
 # Deploy targets
 .deploy_template:
   stage: deploy
-  before_build:
+  before_script:
     - rm -f /root/.condarc
   script:
     - python3 ./bob/devtools/bootstrap.py -vv local base
@@ -140,7 +140,7 @@ pypi:
     - /^v\d+\.\d+\.\d+([abc]\d*)?$/  # PEP-440 compliant version (tags)
   except:
     - branches
-  before_build:
+  before_script:
     - rm -f /root/.condarc
   script:
     - python3 ./bob/devtools/bootstrap.py -vv local base