Hi all,
I’m deploying a website using GL pages with a custom domain. The webpages won’t update for some reason. I got everything setup initially but now a week later it won’t update anymore. I haven’t made any changes sense I first created the site. So this is quite puzzling.
This is from the issue I was writing. Thought while writing it that this might be a miss configuration on my part. Any suggestions would be much appreciated.
Summary
Updating a gitlab pages cite isn’t working. When I push a commit to gitlab CI runs and succeeds then pages updates the site and it reports as a success. But the webpage isn’t updated.
This isn’t my first time using GL pages. It is my first time using it with a custom domain. And this is the first time I’m seeing this. An old forum page that looks like it’s similar behavior Gitlab pages won't update site?
Steps to reproduce
- Clone GitHub - okkur/syna-start: Clonable starter repository for a Syna theme based website
- Configure the demo site with your custom domain.
- Commit this as your
.gitlab-ci.yml
file.
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
before_script:
- apk add --update --no-cache git
variables:
GIT_SUBMODULE_STRATEGY: recursive
pages:
script:
- hugo
artifacts:
paths:
- public
only:
- master
- Attach a custom domain to it using the web portal.
- Allow Gitlab CI to build and publish your website.
- Now update the site through a git commit.
CI will build properly and pages will report as a success but your webpage will not update.