Publishing issues using CI on private gitlab

I have successfully connected my private gitlab to cf pages using CI/CD, When I commit to my repo it pushed the changes to cf pages. But the pages site is showing an empty html page of my gitlab? Not the actual files or site I have made The cloudlfare pages site in cf dashbaord shows the correct files, but the actual page is showing a totally different page https://drive.proton.me/urls/HQ29MW3RW0#OPC3ObDFAEph >> random gitlab html page it is serving?? https://drive.proton.me/urls/JHYTSGHCER#w6ZFLtS3UmFL >> actual files in my repor and on cf pages The only command that works in my .gitlab-ci.yml file is: $ wrangler pages publish public --project-name "test-app" --branch "main" Using this I get an error: $ wrangler pages deploy public --project-name "test-app" --branch "main" āœ˜ [ERROR] Unknown arguments: project-name, projectName, branch, deploy, public Why doesn't the deploy command work? This is the whole gitlab file: deploy_cfpages: image: ellimistgh/wrangler:latest stage: deploy script: - rm -rf README.md .git* - rm -rf public/.gitkeep - pwd - ls -la - wrangler pages publish public --project-name "test-app" --branch "main" when: manual
Proton Drive
Proton Drive allows you to securely store and share your sensitive documents and access them anywhere.
Proton Drive
Proton Drive allows you to securely store and share your sensitive documents and access them anywhere.
5 Replies
James
Jamesā€¢12mo ago
What version of wrangler is that image using? deploy was only added in wrangler v3
mb0x88
mb0x88ā€¢12mo ago
wrangler 2, is there a docker image available for v3?
James
Jamesā€¢12mo ago
Not an official one, as far as I know You should able to use node:18 and then run npm i wrangler -g or similar though since wrangler is simply distributed via npm
mb0x88
mb0x88ā€¢12mo ago
that deploy now works, however im still having the issue where the pages.dev site is actually publishing an empty html version of one of my repos - not the actual files that are in the correct repo or the files that are in my cloudflare pages dashboard hang on i found the issue, thanks for your help, its working as expected,
James
Jamesā€¢12mo ago
Glad to hear it šŸ˜€
Want results from more Discord servers?
Add your server
More Posts