Skip to content

Commit de768ad

Browse files
committed
feat: align repo to self hosted runners
1 parent 188d0ce commit de768ad

10 files changed

+12
-15
lines changed

.github/workflows/az_acr_push.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ jobs:
2121
with:
2222
submodules: 'true'
2323

24-
- name: Set up QEMU dependency
25-
uses: docker/setup-qemu-action@v1
26-
2724
- name: Set up Docker Buildx
2825
uses: docker/setup-buildx-action@v3
2926

.github/workflows/az_acr_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ jobs:
1717
uses: actions/checkout@v4
1818
with:
1919
submodules: 'true'
20-
20+
2121
- name: Configure branch name
2222
id: branch_name
2323
run: echo "GH_REF_NAME=$(echo ${{ github.event.pull_request.head.ref }} | sed 's|/|-|g')" >> $GITHUB_OUTPUT
2424

2525
- name: Set up Docker Buildx
2626
uses: docker/setup-buildx-action@v3
27-
27+
2828
- name: Log into registry
2929
uses: docker/login-action@v3
3030
with:
3131
registry: "${{ env.AZURE_CONTAINER_REGISTRY }}"
3232
username: "${{ env.ACR_LOGIN_USERNAME }}"
3333
password: "${{ env.ACR_LOGIN_PASSWORD }}"
34-
34+
3535
- name: Build & Push ${{ github.event.repository.name }}:test-${{ steps.branch_name.outputs.GH_REF_NAME }}
3636
uses: docker/build-push-action@v5
3737
with:

.github/workflows/k8s_apply.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
jobs:
1313
k8-apply:
1414
name: 'K8: Apply'
15-
runs-on: ubuntu-latest
15+
runs-on: [self-hosted, "${{ github.event.ref_name }}"]
1616
environment: ${{ github.ref_name }}
1717
env:
1818
KUBELOGIN_VERSION: "v0.0.25"

.github/workflows/k8s_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions:
2121
jobs:
2222
k8-deploy:
2323
name: 'K8: Deploy'
24-
runs-on: ubuntu-latest
24+
runs-on: [self-hosted, "${{ inputs.environment }}"]
2525
environment: ${{ inputs.environment }}
2626
env:
2727
APPLICATION_STARTUP_MESSAGE: "Application startup complete"

.github/workflows/k8s_destroy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
jobs:
1313
k8-cluster-destroy:
1414
name: 'K8: Destroy Cluster Namespace'
15-
runs-on: ubuntu-latest
15+
runs-on: [self-hosted, "${{ github.ref_name }}"]
1616
environment: ${{ github.ref_name }}
1717
env:
1818
KUBERNETES_NAMESPACE: "${{ vars.KUBERNETES_NAMESPACE }}"

.github/workflows/k8s_edit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
jobs:
1616
k8-edit:
1717
name: 'K8: Edit'
18-
runs-on: ubuntu-latest
18+
runs-on: [self-hosted, "${{ github.event_name == 'release' && 'prod' || 'dev' }}"]
1919
environment: ${{ github.event_name == 'release' && 'prod' || 'dev' }}
2020
env:
2121
KUBELOGIN_VERSION: "v0.0.25"

.github/workflows/k8s_exec_env_pull.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
jobs:
1313
k8-docker-pulls:
1414
name: 'K8: Docker Pulls'
15-
runs-on: ubuntu-latest
15+
runs-on: [self-hosted, "${{ github.ref_name }}"]
1616
environment: ${{ github.ref_name }}
1717
env:
1818
KUBELOGIN_VERSION: "v0.0.25"

.github/workflows/k8s_inference_reload_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
jobs:
1313
k8-inference-reload-config:
1414
name: 'K8: Inference - Reload Last Config'
15-
runs-on: ubuntu-latest
15+
runs-on: [self-hosted, "${{ github.event.pull_request.base.ref }}"]
1616
environment: dev
1717
env:
1818
KUBELOGIN_VERSION: "v0.0.25"

.github/workflows/k8s_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
k8-test:
2323
name: 'K8: Test'
24-
runs-on: ubuntu-latest
24+
runs-on: [self-hosted, dev]
2525
needs: [call-az-acr-push]
2626
environment: dev
2727
env:

.github/workflows/tf_plan_apply.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717
jobs:
1818
tofu-plan:
1919
name: 'OpenTofu Plan'
20-
runs-on: ubuntu-latest
20+
runs-on: [self-hosted, "${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.ref_name }}"]
2121
environment: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.ref_name }}
2222
env:
2323
ENVIRONMENT_NAME: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || github.ref_name }}
@@ -87,7 +87,7 @@ jobs:
8787
name: 'OpenTofu Apply'
8888
needs: [tofu-plan]
8989
if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && needs.tofu-plan.outputs.tf-plan-exit-code == 2 }}
90-
runs-on: ubuntu-latest
90+
runs-on: [self-hosted, "${{ github.ref_name }}"]
9191
environment: ${{ github.ref_name }}
9292
env:
9393
ENVIRONMENT_NAME: ${{ github.ref_name }}

0 commit comments

Comments
 (0)