Skip to content

Commit

Permalink
feat: change runs-on to self hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenMakandra committed Jan 28, 2025
1 parent 294416e commit f676bc2
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 12 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/compose_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,26 @@ env:

jobs:
compose_push:
runs-on: ubuntu-22.04
runs-on: selfhosted-github-runner

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Set up Ruby
uses: ruby/setup-ruby@v1

- name: Log in to Docker Hub
run: |
docker login -u ${{ secrets.dockerhub_user }} -p ${{ secrets.dockerhub_pass }}
docker login miceportal.nexus-registry-mice.boreus.de.-u ${{ secrets.nexus_user }} -p ${{ secrets.nexus_pass }}
sudo apt update
sudo apt install libyaml-dev libgmp-dev -y
mkdir -p ~/.docker/cli-plugins/
curl -SL https://github.com/docker/compose/releases/download/v2.32.1/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose
chmod +x ~/.docker/cli-plugins/docker-compose
- name: Set up Ruby
uses: ruby/setup-ruby@v1

- name: Compose up
uses: konvenit/workflowator/.github/actions/compose@v12
uses: konvenit/workflowator/.github/actions/compose@MP-50534_Add_Action_Runner_Controller_helm_chart_values
with:
application-name: ${{ inputs.application-name }}

Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/compose_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,27 @@ env:

jobs:
compose_run:
runs-on: ubuntu-22.04
runs-on: selfhosted-github-runner

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Set up Ruby
uses: ruby/setup-ruby@v1

- name: Log in to Docker Hub
run: |
docker login -u ${{ secrets.dockerhub_user }} -p ${{ secrets.dockerhub_pass }}
sudo apt update
sudo apt install libyaml-dev libgmp-dev -y
sudo mkdir /opt/hostedtoolcache && sudo chown runner:runner /opt/hostedtoolcache
mkdir -p ~/.docker/cli-plugins/
curl -SL https://github.com/docker/compose/releases/download/v2.32.1/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose
chmod +x ~/.docker/cli-plugins/docker-compose
- name: Set up Ruby
uses: ruby/setup-ruby@v1

- name: Compose up
uses: konvenit/workflowator/.github/actions/compose@v12
uses: konvenit/workflowator/.github/actions/compose@MP-50534_Add_Action_Runner_Controller_helm_chart_values
with:
application-name: ${{ inputs.application-name }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
jobs:
sample-action:
name: Sample action
runs-on: ubuntu-22.04
runs-on: selfhosted-github-runner

steps:
- name: Checkout repo
Expand Down
4 changes: 4 additions & 0 deletions helm/scale_set/values_scale_set_dind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# https://github.com/<your_enterprise/org/repo>
githubConfigUrl: "https://github.com/konvenit"
githubConfigSecret: github-pat
# minRunners: 4
# maxRunners: 10
template:
spec:
initContainers:
Expand All @@ -23,6 +25,8 @@ template:
mountPath: /home/runner/_work
- name: dind-sock
mountPath: /var/run
- name: toolcache
mountPath: /opt/hostedtoolcache
- name: dind
image: docker:dind
args:
Expand Down

0 comments on commit f676bc2

Please sign in to comment.