diff --git a/backend/secfit/.gitlab-ci.yml b/backend/secfit/.gitlab-ci.yml
index be5c15ebf295a42ed6372ceacef4a7dabd90c7c8..c09fa062e09e40a6a5818867424f65db7db7b183 100644
--- a/backend/secfit/.gitlab-ci.yml
+++ b/backend/secfit/.gitlab-ci.yml
@@ -1,16 +1,14 @@
-build:
-  stage: build
-  script:
+deploy:
+  stage: deploy
+  image: python:3.8.5-slim
+  before_script:
     - apt-get clean
     - pip install -r backend/secfit/requirements.txt
   cache:
-      paths:
-        - ~/.cache/pip/
+    paths:
+      - ~/.cache/pip/
   services:
     - postgres:latest
-
-deploy:
-  stage: deploy
   script:
     - apt-get update -qy --allow-insecure-repositories
     - apt-get install -y ruby-dev
@@ -19,4 +17,5 @@ deploy:
     - gem install dpl
     - dpl --provider=heroku --app=secfit-group15 --api-key=$HEROKU_API_KEY --skip_cleanup
   only:
-    - master
+    refs:
+      - master