Update .gitlab-ci.yml file
This commit is contained in:
		@@ -1,7 +1,13 @@
 | 
				
			|||||||
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
 | 
					image: registry.gitlab.com/pages/hugo/hugo_extended:latest
 | 
				
			||||||
variables:
 | 
					variables:
 | 
				
			||||||
  GIT_SUBMODULE_STRATEGY: recursive
 | 
					  GIT_SUBMODULE_STRATEGY: recursive
 | 
				
			||||||
deploy_website:
 | 
					test:
 | 
				
			||||||
 | 
					  script:
 | 
				
			||||||
 | 
					    - hugo
 | 
				
			||||||
 | 
					  except:
 | 
				
			||||||
 | 
					    variables:
 | 
				
			||||||
 | 
					      - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
 | 
				
			||||||
 | 
					pages:
 | 
				
			||||||
  before_script:
 | 
					  before_script:
 | 
				
			||||||
  - apk add --update --no-cache git curl
 | 
					  - apk add --update --no-cache git curl
 | 
				
			||||||
  - git config --global user.name "Denys Konovalov"
 | 
					  - git config --global user.name "Denys Konovalov"
 | 
				
			||||||
@@ -22,5 +28,6 @@ deploy_website:
 | 
				
			|||||||
  artifacts:
 | 
					  artifacts:
 | 
				
			||||||
    paths:
 | 
					    paths:
 | 
				
			||||||
    - public
 | 
					    - public
 | 
				
			||||||
  rules:
 | 
					  only:
 | 
				
			||||||
  - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
 | 
					    variables:
 | 
				
			||||||
 | 
					      - $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
 | 
				
			||||||
		Reference in New Issue
	
	Block a user