Skip to content

Commit

Permalink
chore(actions): switch to github runners (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-lx authored Mar 19, 2024
1 parent 27ee65d commit cf83cb4
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 49 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/merge-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -45,8 +46,9 @@ jobs:

name: Build
runs-on:
- self-hosted
- medium
#- self-hosted
#- medium
- ubuntu-22.04

needs:
- prepare
Expand Down Expand Up @@ -78,8 +80,9 @@ jobs:

name: Dev and Draft Releases
runs-on:
- self-hosted
- small
#- self-hosted
#- small
- ubuntu-22.04

needs:
- prepare
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/prereleased.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -50,8 +51,9 @@ jobs:
prepare:
name: Prepare
runs-on:
- self-hosted
- small
#- self-hosted
#- small
- ubuntu-22.04

needs:
- cancel_previous
Expand All @@ -68,8 +70,9 @@ jobs:
build:
name: Build
runs-on:
- self-hosted
- medium
#- self-hosted
#- medium
- ubuntu-22.04

needs:
- prepare
Expand Down Expand Up @@ -153,8 +156,9 @@ jobs:
update-manifests:
name: Update Manifests
runs-on:
- self-hosted
- small
#- self-hosted
#- small
- ubuntu-22.04

needs:
- prepare
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ jobs:
build:
name: Build
runs-on:
- self-hosted
- medium
#- self-hosted
#- medium
- ubuntu-22.04

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -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
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/released.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -46,8 +47,9 @@ jobs:
prepare:
name: Prepare
runs-on:
- self-hosted
- small
#- self-hosted
#- small
- ubuntu-22.04

needs:
- cancel_previous
Expand All @@ -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
Expand Down Expand Up @@ -101,8 +104,9 @@ jobs:
update-manifests:
name: Update Manifests
runs-on:
- self-hosted
- small
#- self-hosted
#- small
- ubuntu-22.04

needs:
- prepare
Expand Down
47 changes: 24 additions & 23 deletions .github/workflows/sonarqube.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
# - name: SonarQube Scan
# uses: sonarsource/[email protected]
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

0 comments on commit cf83cb4

Please sign in to comment.