Skip to content

Commit

Permalink
chore(ci): updates for ubuntu-latest runner (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Jan 14, 2025
1 parent 1e7a289 commit e7ac223
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
name: Set Variables
outputs:
pr: ${{ steps.pr.outputs.pr }}
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
timeout-minutes: 1
steps: # Get PR number for squash merges to main
- name: PR Number
id: pr
uses: bcgov-nr/action-get-pr@v0.0.1
semantic-release:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [vars]
outputs:
tag: ${{ steps.changelog.outputs.tag }}
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
builds:
name: Builds
needs: semantic-release
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
permissions:
packages: write
strategy:
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
build_args: |
APP_VERSION=${{ needs.semantic-release.outputs.version }}
helm-release:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: [builds,semantic-release]
if: ${{ needs.semantic-release.outputs.version != '' }}
steps:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ jobs:
name: Cleanup OpenShift
env:
release: ${{ github.event.repository.name }}-${{ github.event.number }}
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Install CLI tools from OpenShift Mirror
uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4.14.37"

- name: Remove OpenShift artifacts
run: |
oc login --token=${{ secrets.OC_TOKEN }} --server=${{ vars.OC_SERVER }}
Expand All @@ -32,7 +37,7 @@ jobs:
image-promotions:
name: Image Promotions
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
permissions:
packages: write
strategy:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
builds:
name: Builds
if: '!github.event.pull_request.head.repo.fork'
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
permissions:
packages: write
strategy:
Expand Down Expand Up @@ -48,14 +48,19 @@ jobs:
name: Deploys
needs:
- builds
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
environment: test
env:
project_name: nr-oracle
app_name: nr-oracle-service
environment: development
secret_path_env: dev # this path is different from the path in the broker
steps:
- name: Install CLI tools from OpenShift Mirror
uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4.14.37"

- uses: actions/checkout@v4

- name: Deploy to Openshift
Expand Down

0 comments on commit e7ac223

Please sign in to comment.