Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. How to get Gogs to automatically post to GitHub Pages?

How to get Gogs to automatically post to GitHub Pages?

Scheduled Pinned Locked Moved Support
4 Posts 3 Posters 783 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      N Offline
      ntnsndr
      wrote on last edited by
      #1

      Hi! I'm trying to replicate a GitHub/Lab Pages setup using the combo of Gogs and GitHub Pages on Cloudron. Basically the goal is that anytime a commit occurs on Gogs or local changes are pushed to it, I want it to deploy to the GitHub Pages site. I also want to do this in a way that doesn't expose the credentials to GitHub Pages in a git config data file.

      My assumption is that, if this is possible, it would be through Git Hooks on Gogs. But I don't see how best to include login credentials there. I'm not the best at shell scripts. Can anyone help me with this?

      Thank you so much.

      murgeroM 1 Reply Last reply
      1
      • N ntnsndr

        Hi! I'm trying to replicate a GitHub/Lab Pages setup using the combo of Gogs and GitHub Pages on Cloudron. Basically the goal is that anytime a commit occurs on Gogs or local changes are pushed to it, I want it to deploy to the GitHub Pages site. I also want to do this in a way that doesn't expose the credentials to GitHub Pages in a git config data file.

        My assumption is that, if this is possible, it would be through Git Hooks on Gogs. But I don't see how best to include login credentials there. I'm not the best at shell scripts. Can anyone help me with this?

        Thank you so much.

        murgeroM Offline
        murgeroM Offline
        murgero
        App Dev
        wrote on last edited by
        #2

        @ntnsndr possible webhook? I am not familiar with gogs, but it supports webhooks right? If not you could install n8n and automate the task you would normally do manually.

        --
        https://urgero.org
        ~ Professional Nerd. Freelance Programmer. ~

        N 1 Reply Last reply
        0
        • murgeroM murgero

          @ntnsndr possible webhook? I am not familiar with gogs, but it supports webhooks right? If not you could install n8n and automate the task you would normally do manually.

          N Offline
          N Offline
          ntnsndr
          wrote on last edited by
          #3

          @murgero Thanks—yes, it does support Webhooks, as well as Git Hooks. But any suggestions how to handle the authentication process that GitHub Pages requires in a script?

          murgeroM 1 Reply Last reply
          0
          • N ntnsndr

            @murgero Thanks—yes, it does support Webhooks, as well as Git Hooks. But any suggestions how to handle the authentication process that GitHub Pages requires in a script?

            murgeroM Offline
            murgeroM Offline
            murgero
            App Dev
            wrote on last edited by
            #4

            @ntnsndr You talking about Github Pages official, or the Cloudron app?

            --
            https://urgero.org
            ~ Professional Nerd. Freelance Programmer. ~

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search