diff --git a/CHANGELOG.md b/CHANGELOG.md
index 03191887a19a89139e44d29773a5408716a28650..0740420e41bcc8bb89601e214ae4aa77ce75b48e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+## [2.1.2](https://gitlab.com/to-be-continuous/maven/compare/2.1.1...2.1.2) (2021-10-07)
+
+
+### Bug Fixes
+
+* use master or main for production env ([d5cac44](https://gitlab.com/to-be-continuous/maven/commit/d5cac44ae499b9ab3063cdb31935a2cd9d1b448a))
+
 ## [2.1.1](https://gitlab.com/to-be-continuous/maven/compare/2.1.0...2.1.1) (2021-09-23)
 
 
diff --git a/README.md b/README.md
index 33c15c523ac061c1799618be118d6371de1b63eb..321dd6d69a464a81300377a60417b7659d47aaaa 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ In order to include this template in your project, add the following to your `gi
 ```yaml
 include:
   - project: 'to-be-continuous/maven'
-    ref: '2.1.1'
+    ref: '2.1.2'
     file: '/templates/gitlab-ci-maven.yml'
 ```
 
diff --git a/templates/gitlab-ci-maven.yml b/templates/gitlab-ci-maven.yml
index ed7e3cc5ced5af72e3e5166cf963bbd79c127721..0b7559ed1e280c8aad63342df5a27e958bb8eab7 100644
--- a/templates/gitlab-ci-maven.yml
+++ b/templates/gitlab-ci-maven.yml
@@ -434,7 +434,7 @@ stages:
     esac
   }
 
-  if [[ "$TEMPLATE_CHECK_UPDATE_DISABLED" != "true" ]]; then check_for_update maven "2.1.1"; fi
+  if [[ "$TEMPLATE_CHECK_UPDATE_DISABLED" != "true" ]]; then check_for_update maven "2.1.2"; fi
   unscope_variables
 
   # ENDSCRIPT
@@ -444,7 +444,7 @@ stages:
   image: $MAVEN_IMAGE
   services:
     - name: "$CI_REGISTRY/to-be-continuous/tools/tracking:master"
-      command: ["--service", "maven", "2.1.1" ]
+      command: ["--service", "maven", "2.1.2" ]
   before_script:
     - *mvn-scripts
     - install_ca_certs "${CUSTOM_CA_CERTS:-$DEFAULT_CA_CERTS}"