Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): updates for ubuntu-latest runner #96

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]
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
Loading