From cf83cb4a840d4965d3916e0e397ce6d8df08da18 Mon Sep 17 00:00:00 2001 From: andre-lx <44682155+andre-lx@users.noreply.github.com> Date: Tue, 19 Mar 2024 11:28:15 +0000 Subject: [PATCH] chore(actions): switch to github runners (#73) --- .github/workflows/merge-master.yaml | 15 +++++---- .github/workflows/prereleased.yaml | 20 +++++++----- .github/workflows/pull-request.yaml | 10 +++--- .github/workflows/released.yaml | 20 +++++++----- .github/workflows/sonarqube.yaml | 47 +++++++++++++++-------------- 5 files changed, 63 insertions(+), 49 deletions(-) diff --git a/.github/workflows/merge-master.yaml b/.github/workflows/merge-master.yaml index 5c09e84..4fad80d 100644 --- a/.github/workflows/merge-master.yaml +++ b/.github/workflows/merge-master.yaml @@ -13,8 +13,9 @@ jobs: prepare: name: Calculate Version and Build Number runs-on: - - self-hosted - - small + #- self-hosted + #- small + - ubuntu-22.04 outputs: build_number: ${{ steps.short_sha.outputs.value }} @@ -45,8 +46,9 @@ jobs: name: Build runs-on: - - self-hosted - - medium + #- self-hosted + #- medium + - ubuntu-22.04 needs: - prepare @@ -78,8 +80,9 @@ jobs: name: Dev and Draft Releases runs-on: - - self-hosted - - small + #- self-hosted + #- small + - ubuntu-22.04 needs: - prepare diff --git a/.github/workflows/prereleased.yaml b/.github/workflows/prereleased.yaml index 698deae..68787f7 100644 --- a/.github/workflows/prereleased.yaml +++ b/.github/workflows/prereleased.yaml @@ -36,8 +36,9 @@ jobs: cancel_previous: name: 'Cancel Previous Runs' runs-on: - - self-hosted - - small + #- self-hosted + #- small + - ubuntu-22.04 timeout-minutes: 3 steps: @@ -50,8 +51,9 @@ jobs: prepare: name: Prepare runs-on: - - self-hosted - - small + #- self-hosted + #- small + - ubuntu-22.04 needs: - cancel_previous @@ -68,8 +70,9 @@ jobs: build: name: Build runs-on: - - self-hosted - - medium + #- self-hosted + #- medium + - ubuntu-22.04 needs: - prepare @@ -153,8 +156,9 @@ jobs: update-manifests: name: Update Manifests runs-on: - - self-hosted - - small + #- self-hosted + #- small + - ubuntu-22.04 needs: - prepare diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 7c5487a..a78ee75 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -30,8 +30,9 @@ jobs: build: name: Build runs-on: - - self-hosted - - medium + #- self-hosted + #- medium + - ubuntu-22.04 steps: - uses: actions/checkout@v4 @@ -64,8 +65,9 @@ jobs: static-analysis: name: Static Analysis runs-on: - - self-hosted - - large + #- self-hosted + #- large + - ubuntu-22.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/released.yaml b/.github/workflows/released.yaml index c3eeaeb..af52d9d 100644 --- a/.github/workflows/released.yaml +++ b/.github/workflows/released.yaml @@ -32,8 +32,9 @@ jobs: cancel_previous: name: 'Cancel Previous Runs' runs-on: - - self-hosted - - small + #- self-hosted + #- small + - ubuntu-22.04 timeout-minutes: 3 steps: @@ -46,8 +47,9 @@ jobs: prepare: name: Prepare runs-on: - - self-hosted - - small + #- self-hosted + #- small + - ubuntu-22.04 needs: - cancel_previous @@ -71,8 +73,9 @@ jobs: docker-tag: name: Docker Tag and Push runs-on: - - self-hosted - - medium + #- self-hosted + #- medium + - ubuntu-22.04 needs: - prepare @@ -101,8 +104,9 @@ jobs: update-manifests: name: Update Manifests runs-on: - - self-hosted - - small + #- self-hosted + #- small + - ubuntu-22.04 needs: - prepare diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index 2e24d79..4b560c2 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -1,32 +1,33 @@ -name: SonarQube +#name: SonarQube -on: - push: - branches: - - master +#on: +# push: +# branches: +# - master -jobs: - sonarqube: - name: SonarQube - runs-on: - - self-hosted - - small +#jobs: +# sonarqube: +# name: SonarQube +# runs-on: +# #- self-hosted +# #- small +# - ubuntu-22.04 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 +# steps: +# - uses: actions/checkout@v4 +# with: +# fetch-depth: 0 - - name: SonarQube file - run: | - echo "sonar.projectKey=${{ github.event.repository.name }}" > sonar-project.properties +# - name: SonarQube file +# run: | +# echo "sonar.projectKey=${{ github.event.repository.name }}" > sonar-project.properties - - name: SonarQube Scan - uses: sonarsource/sonarqube-scan-action@v2.0.1 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} +# - name: SonarQube Scan +# uses: sonarsource/sonarqube-scan-action@v2.0.1 +# env: +# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} +# SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}