At Repository → Files → On branch “main”, it shows a near-barebones repo from 2020.
I can view the repo from my latest commit - not shown in the Commits but the CI/CD Pipelines and Activity!.- and you can see what it should look like.
My CI/CD jobs shows 289 pipelines.
In the pipeline:
- I’d push from my client to GitLab
- GitLab’d ssh into my droplet, and
git pullfrom the main branch.
I can view a commit repo thing with the latest files by clicking the commit from the pipeline then “Browse Files”.
You can see that my site works, as it definitely has way more posts than what’s ostensibly in my repository here:
Here’s my latest pipeline from seven months ago.
$ ssh email@example.com "cd /var/www/aarondeobell.com && git pull && hugo && exit" Warning: Permanently added 'aarondeobell.com,220.127.116.11' (ECDSA) to the list of known hosts. From https://gitlab.com/Crowbrammer/aarondeobell-com fd84c51..508efda main -> origin/main Updating fd84c51..508efda Fast-forward .../education/more-essential-info-to-the-community.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 content/posts/development/clojure/education/more-essential-info-to-the-community.md Building sites …
What further confuses me is that my droplet
git pulls the right stuff whereas when I
git pull from my personal PC, it pulls the barebones directory.
What do I need to know about GitLab/Git to know how:
- the pipeline shows commits and merges to the
- my droplet can pull the latest commit, but
- GitLab doesn’t show it in the plain jane Repository > Files > (main branch), and
git pullalso pulls the barebones
I’m using GitLab.com for this, and I’m not sure if this’ll help, but here’s my .gitlab-ci.yml:
before_script: - apt-get update -qq - apt-get install -qq git # Setup SSH deploy keys - 'which ssh-agent || ( apt-get install -qq openssh-client )' - eval $(ssh-agent -s) - ssh-add <(echo "$SSH_PRIVATE_KEY") - mkdir -p ~/.ssh - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' deploy_staging: environment: name: staging url: aarondeobell.com script: - ssh firstname.lastname@example.org "cd /var/www/aarondeobell.com && git pull && hugo && exit" only: - main
This guy shares my issue but he’s not been answered either.