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. GitHub Pages
  3. Using the app with Github Actions

Using the app with Github Actions

Scheduled Pinned Locked Moved GitHub Pages
6 Posts 3 Posters 993 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.
  • T Offline
    T Offline
    thoresson
    wrote on last edited by
    #1

    Hi!

    I want to deploy an 11ty static site to Cloudron, and if possible build it and deploy everytime I push new content to the sites Github repo. Is it possible to push to this app from a Github account, or is it only push from a local repo that's possible?

    I think the later, and if I'm right: Is there any other way to push a build from a Github account to some other Cloudron app?

    /Anders

    1 Reply Last reply
    1
    • BrutalBirdieB Offline
      BrutalBirdieB Offline
      BrutalBirdie
      Partner
      wrote on last edited by BrutalBirdie
      #2

      Yes you can, you need the cloudron-cli and a Cloudron token. Then you can use the cli in the action with the secret token to push the repo into the /app/data/<placeholder> app.

      cloudron push --help
      Usage: cloudron push [options] <local> <remote>
      
      push a single local file or directory to a remote directory
      
      Options:
        --app <id/location>  App id or location
        -h, --help           display help for command
      
        Examples:
      
          $ cloudron push --app myapp file.txt /app/data/file.txt # pushes file.txt
          $ cloudron push --app myapp file.txt /app/data/         # pushes file.txt. trailing slash is important
          $ cloudron push --app myapp dir /app/data               # pushes dir/* as /app/data/dir/*
          $ cloudron push --app myapp dir/. /app/data             # pushes dir/* as /app/data/*
          $ cloudron push --app myapp dir/subdir /app/data        # pushes dir/subdir/* as /app/data/subdir/*
          $ cloudron push --app myapp . /app/data                 # pushes .* as /app/data/*
      

      Like my work? Consider donating a drink. Cheers!

      1 Reply Last reply
      2
      • fbartelsF Offline
        fbartelsF Offline
        fbartels
        App Dev
        wrote on last edited by
        #3

        Since it is a static site you could also install surfer as the app serving your site and then use the surfer cli to deploy it. There are some examples for hugo based sites and surfer already on this forum.

        1 Reply Last reply
        2
        • T Offline
          T Offline
          thoresson
          wrote on last edited by
          #4

          But both the cli solutions are to be run locally, from my desktop? Or could they be used on GitHub as well?

          1 Reply Last reply
          1
          • fbartelsF Offline
            fbartelsF Offline
            fbartels
            App Dev
            wrote on last edited by fbartels
            #5

            Anything you can run on the cli you could also run in a ci system such as GitHub actions. Here is an example: https://forum.cloudron.io/topic/3678/build-deploy-to-cloudron-from-github-actions

            1 Reply Last reply
            3
            • T Offline
              T Offline
              thoresson
              wrote on last edited by
              #6

              Ah, thanks! I’m just getting started with Git/Github, so wasn’t aware of that. 🙂

              1 Reply Last reply
              1
              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