From eb8e7be3225b2a02cbb5018d227276d057645545 Mon Sep 17 00:00:00 2001
From: Ivan Procaccini <ivanprocaccini905@gmail.com>
Date: Wed, 31 Aug 2022 15:16:26 +0100
Subject: [PATCH] Fix: Enable building of nginx image on master

---
 .gitlab-ci.yml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 54ca08d..344fecd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -71,10 +71,12 @@ build nginx image:
   stage: build
   interruptible: true
   except:
+    refs:
+      - schedules
     changes:
-      - "**/README.md"
+      - README.md
   only:
-    - rewrite
+    - master
   variables:
     DOCKER_TLS_CERTDIR: "/certs"
     GIT_SUBMODULE_STRATEGY: recursive
@@ -100,6 +102,7 @@ build nginx image:
 
 
 build app image:
+  image: docker:latest
   stage: build
   except:
     refs:
@@ -113,7 +116,6 @@ build app image:
     GIT_SUBMODULE_STRATEGY: recursive
   tags:
     - docker
-  image: docker:latest
   services:
     - docker:dind
   before_script: []
-- 
GitLab