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 0f5490a
Show file tree
Hide file tree
Showing 4 changed files with 33 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
10 changes: 10 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: 2
# maxRunners: 10
template:
spec:
initContainers:
Expand All @@ -23,12 +25,18 @@ template:
mountPath: /home/runner/_work
- name: dind-sock
mountPath: /var/run
- name: toolcache
mountPath: /opt/hostedtoolcache
- name: dind
image: docker:dind
args:
- dockerd
- --host=unix:///var/run/docker.sock
- --group=$(DOCKER_GROUP_GID)
- --max-concurrent-downloads=5
- --http-proxy=http://proxy20.boreus.de:3128/
- --https-proxy=http://proxy20.boreus.de:3128/
- --no-proxy=127.0.0.1,localhost,localhost.localdomain,cluster.local,10.43.0.1,miceportal-alpha.de,miceportal-alpha.com,miceportal.de,miceportal.com,svc.boreus.de,mice.boreus.de,registry.boreus.de,gitlab.boreus.de,*.nexus-registry-mice.boreus.de
env:
- name: DOCKER_GROUP_GID
value: "123"
Expand All @@ -48,6 +56,8 @@ template:
emptyDir: {}
- name: dind-externals
emptyDir: {}
- name: toolcache
emptyDir: {}
nodeSelector: {
"ci": "true"
}
Expand Down

0 comments on commit 0f5490a

Please sign in to comment.