diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9cf4eb9d266ce3d6090e360b68ff6fd55e58e7ab..8599286b6c0b38e129b9e2734aab5c69fa2b97b8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -40,7 +40,7 @@ bundle_and_test:
       - public
     expire_in: 2 days
   only:
-    - master
+    - $CI_DEFAULT_BRANCH
 
 # test_api:
 #   stage: test
@@ -64,7 +64,7 @@ pages:
       - public
     expire_in: 2 days
   only:
-    - master
+    - $CI_DEFAULT_BRANCH
 
 docker-push:
   # Use the official docker image.
@@ -88,16 +88,16 @@ docker-push:
         else docker build -t $AURA_IMAGE_NAME -t $AURA_IMAGE_NAME:$CI_COMMIT_TAG .
       fi
     - docker push "$AURA_IMAGE_NAME" --all-tags
-  rules: 
+  rules:
     - *release-rules
     # every commit on master/main branch should trigger a push to docker-hub as unstable without a release
-    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH 
+    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
       exists:
         - Dockerfile
 
 release_job:
   stage: release
-  needs: 
+  needs:
     - docker-push
   image: registry.gitlab.com/gitlab-org/release-cli:latest
   rules: *release-rules
@@ -108,3 +108,4 @@ release_job:
     description: ./CHANGELOG
     tag_name: '$CI_COMMIT_TAG'
     ref: '$CI_COMMIT_TAG'
+