diff --git a/scripts/ci/jobs/container.yml b/scripts/ci/jobs/container.yml
index f72dc839aeed148334eae005ed61af01d42d857d..e687de1c81f3842f9ed00832e25c30dda55daacc 100644
--- a/scripts/ci/jobs/container.yml
+++ b/scripts/ci/jobs/container.yml
@@ -2,8 +2,10 @@ container:
   stage: package
   tags: [docker-shell]
   needs: [meta]
+  rules:
+    - if: '$CI_COMMIT_BRANCH == "master"'
+    - if: $CI_COMMIT_TAG
   extends:
-    - .rules-master
     - .container-maker-setup
   script:
     - python ThirdParty/container-maker/ogscm/cli.py -B -C -R --ogs . --pm system --cvode