Change runners on repository workflows

This commit is contained in:
Victor Carlos Erenu
2026-06-20 00:32:06 +07:00
parent 564bd29e9b
commit 4ad604f33c
4 changed files with 25 additions and 20 deletions
@@ -85,7 +85,7 @@ permissions:
jobs: jobs:
setup: setup:
runs-on: runs-on:
group: wz-linux-amd64 group: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}
outputs: outputs:
WAZUH_COMPONENTS: ${{ steps.compute-outputs.outputs.WAZUH_COMPONENTS }} WAZUH_COMPONENTS: ${{ steps.compute-outputs.outputs.WAZUH_COMPONENTS }}
@@ -161,7 +161,7 @@ jobs:
package-urls: package-urls:
name: generate package urls name: generate package urls
runs-on: runs-on:
group: wz-linux-amd64 group: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}
needs: setup needs: setup
env: env:
@@ -293,7 +293,7 @@ jobs:
build-and-push: build-and-push:
runs-on: runs-on:
group: wz-linux-amd64 group: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}
needs: needs:
- setup - setup
@@ -333,7 +333,6 @@ jobs:
uses: aws-actions/amazon-ecr-login@v2 uses: aws-actions/amazon-ecr-login@v2
- name: Log in to Docker Hub - name: Log in to Docker Hub
if: ${{ inputs.dev == false }}
uses: docker/login-action@v4 uses: docker/login-action@v4
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -421,7 +420,7 @@ jobs:
notify: notify:
runs-on: ubuntu-22.04 runs-on: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}
needs: [setup, build-and-push] needs: [setup, build-and-push]
# Only run if NOT dev AND all products were selected # Only run if NOT dev AND all products were selected
if: ${{ inputs.dev == false && needs.setup.outputs.ALL_PRODUCTS_SELECTED == 'true' }} if: ${{ inputs.dev == false && needs.setup.outputs.ALL_PRODUCTS_SELECTED == 'true' }}
+1 -1
View File
@@ -40,7 +40,7 @@ on:
jobs: jobs:
bump: bump:
name: Repository bumper 5.x name: Repository bumper 5.x
runs-on: ubuntu-24.04 runs-on: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}
permissions: permissions:
contents: write contents: write
pull-requests: write pull-requests: write
@@ -72,7 +72,7 @@ jobs:
(contains(github.event.comment.body, '/test-docker-single') || (contains(github.event.comment.body, '/test-docker-single') ||
contains(github.event.comment.body, '/test-docker-multi') || contains(github.event.comment.body, '/test-docker-multi') ||
contains(github.event.comment.body, '/test-docker')) contains(github.event.comment.body, '/test-docker'))
runs-on: ubuntu-latest runs-on: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}
outputs: outputs:
pr_number: ${{ steps.pr_data.outputs.pr_number }} pr_number: ${{ steps.pr_data.outputs.pr_number }}
pr_head_ref: ${{ steps.pr_data.outputs.pr_head_ref }} pr_head_ref: ${{ steps.pr_data.outputs.pr_head_ref }}
@@ -156,7 +156,7 @@ jobs:
if: | if: |
always() && always() &&
(needs.get_pr_info.result == 'success' || github.event_name == 'workflow_dispatch') (needs.get_pr_info.result == 'success' || github.event_name == 'workflow_dispatch')
runs-on: ubuntu-latest runs-on: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}
outputs: outputs:
pr_head_ref: ${{ steps.ctx.outputs.pr_head_ref }} pr_head_ref: ${{ steps.ctx.outputs.pr_head_ref }}
deployment_matrix: ${{ steps.ctx.outputs.deployment_matrix }} deployment_matrix: ${{ steps.ctx.outputs.deployment_matrix }}
@@ -322,7 +322,7 @@ jobs:
always() && always() &&
needs.prepare.result == 'success' && needs.prepare.result == 'success' &&
(needs.build_images.result == 'success' || needs.build_images.result == 'skipped') (needs.build_images.result == 'success' || needs.build_images.result == 'skipped')
runs-on: ubuntu-latest runs-on: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@@ -848,7 +848,7 @@ jobs:
update_check: update_check:
needs: [get_pr_info, prepare, build_images, docker_test] needs: [get_pr_info, prepare, build_images, docker_test]
if: always() && github.event_name == 'issue_comment' && needs.get_pr_info.result == 'success' if: always() && github.event_name == 'issue_comment' && needs.get_pr_info.result == 'success'
runs-on: ubuntu-latest runs-on: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}
steps: steps:
- name: Update check run - name: Update check run
uses: actions/github-script@v7 uses: actions/github-script@v7
+16 -10
View File
@@ -25,7 +25,7 @@ jobs:
prepare-variables: prepare-variables:
if: ${{ !github.event.pull_request.draft }} if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest runs-on: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}
outputs: outputs:
WAZUH_VERSION: ${{ steps.dotenv.outputs.WAZUH_VERSION }} WAZUH_VERSION: ${{ steps.dotenv.outputs.WAZUH_VERSION }}
WAZUH_IMAGE_VERSION: ${{ steps.dotenv.outputs.WAZUH_IMAGE_VERSION }} WAZUH_IMAGE_VERSION: ${{ steps.dotenv.outputs.WAZUH_IMAGE_VERSION }}
@@ -63,7 +63,7 @@ jobs:
Execute-Goss-tests: Execute-Goss-tests:
needs: [prepare-variables, build-images] needs: [prepare-variables, build-images]
runs-on: ubuntu-22.04 runs-on: codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}
env: env:
WAZUH_IMAGE_VERSION: ${{ needs.prepare-variables.outputs.WAZUH_IMAGE_VERSION }} WAZUH_IMAGE_VERSION: ${{ needs.prepare-variables.outputs.WAZUH_IMAGE_VERSION }}
WAZUH_REGISTRY: ${{ needs.prepare-variables.outputs.WAZUH_REGISTRY }} WAZUH_REGISTRY: ${{ needs.prepare-variables.outputs.WAZUH_REGISTRY }}
@@ -97,7 +97,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-22.04, ubuntu-22.04-arm] os: ["codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}", "codebuild-github-actions-codebuild-runner-devops-arm-${{ github.run_id }}-${{ github.run_attempt }}"]
fail-fast: false fail-fast: false
needs: [prepare-variables, Execute-Goss-tests] needs: [prepare-variables, Execute-Goss-tests]
env: env:
@@ -114,9 +114,6 @@ jobs:
- name: Check out code - name: Check out code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: free disk space
uses: ./.github/free-disk-space
- name: Configure aws credentials - name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@v4 uses: aws-actions/configure-aws-credentials@v4
with: with:
@@ -132,6 +129,12 @@ jobs:
name: presigned-artifact-urls-${{ github.run_id }} name: presigned-artifact-urls-${{ github.run_id }}
path: ./single-node/ path: ./single-node/
- name: Log in to Docker Hub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Add environment variables into GITHUB_ENV - name: Add environment variables into GITHUB_ENV
run: | run: |
# Export variables to the environment # Export variables to the environment
@@ -372,7 +375,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-22.04, ubuntu-22.04-arm] os: ["codebuild-github-actions-codebuild-runner-devops-amd-${{ github.run_id }}-${{ github.run_attempt }}", "codebuild-github-actions-codebuild-runner-devops-arm-${{ github.run_id }}-${{ github.run_attempt }}"]
fail-fast: false fail-fast: false
needs: [prepare-variables, Execute-Goss-tests] needs: [prepare-variables, Execute-Goss-tests]
env: env:
@@ -389,9 +392,6 @@ jobs:
- name: Check out code - name: Check out code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: free disk space
uses: ./.github/free-disk-space
- name: Configure aws credentials - name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@v4 uses: aws-actions/configure-aws-credentials@v4
with: with:
@@ -407,6 +407,12 @@ jobs:
name: presigned-artifact-urls-${{ github.run_id }} name: presigned-artifact-urls-${{ github.run_id }}
path: ./multi-node/ path: ./multi-node/
- name: Log in to Docker Hub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Add environment variables into GITHUB_ENV - name: Add environment variables into GITHUB_ENV
run: | run: |
# Export variables to the environment # Export variables to the environment