Skip to content

Commit

Permalink
use label for runner-decision (ubuntu-latest) instead of fixed self-h…
Browse files Browse the repository at this point in the history
…osted ones
  • Loading branch information
guFalcon committed Apr 5, 2024
1 parent 520cba6 commit 27003e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docs-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build:
name: Build & Publish 🚀
runs-on: self-hosted
runs-on: ubuntu-latest
env:
INPUTPATH: asciidocs
OUTPUTPATH: dist
Expand All @@ -32,7 +32,7 @@ jobs:
FOLDER: ${{ env.OUTPUTPATH }}
bump:
name: Get And Bump SemVer 👊
runs-on: self-hosted
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Checkout repo
Expand All @@ -48,7 +48,7 @@ jobs:
WITH_V: false
docker-build:
name: Build Docker Image 🐋
runs-on: self-hosted
runs-on: ubuntu-latest
needs: [bump]
steps:
- name: Checkout repo
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
tags: ${{ secrets.DOCKER_HUB_USER }}/safe-learn:latest
deploy:
name: Deployment 💻
runs-on: self-hosted
runs-on: ubuntu-latest
needs: [docker-build]
steps:
- name: Checkout repo
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ To build, there is a Github action in this repository, but in order to configure
| SERVER_URL | This is the URL your server will be available at later, after deploying. Examples are `https://htl.unterrainer.info` or the default `http://localhost:8080`. |
| PLANTUML_URL | Defaults to `https://plantuml.unterrainer.info/plantuml` |
| DEPLOY_DIR | The absolute path to the installation directory on your target machine (server). |
| DEPLOY_SERVER | The host-address of your server (as accessible from a Gitlab runner). |
| DEPLOY_SERVER | The host-address of your server (as accessible from a Github runner). |
| DEPLOY_SSH_PORT | The port for the SSH connection to your server. |
| DEPLOY_SSH_PRIVATE_KEY | The private key for SSH authentication. |
| DEPLOY_SSH_USER | The user for SSH authentication (local user). |
Expand All @@ -257,6 +257,8 @@ To build, there is a Github action in this repository, but in order to configure
After starting the build-pipeline on Github for the first time after inserting all these values, you should have a NodeJS server deployed and up-and-running on your target machine, accessible via the PORT you entered as a secret.
Upon entering any page you'll be prompted to login at the given Keycloak server in order to gain access.

If your repository is private, which makes sense, Github will force you to either pay for Github Enterprise, or to have your own, self-hosted Github Runner. Because this repository however is public, the build-action-script refers to the runner as `runs-on: ubuntu-latest`. So in order to use your private self-hosted-runners you'll have to label them `ubuntu-latest` so Github will take care of that. Your runners will have slightly higher priority than the public ones.

## Debugging
To test the portions of the web-site that isn't directly connected to the gh-pages generation and Asciidoc conversion, you may want to start it using VSCode.
Just do the following:
Expand Down

0 comments on commit 27003e0

Please sign in to comment.