Skip to content

Commit

Permalink
ensure runner version, set explicit artifact retention period
Browse files Browse the repository at this point in the history
  • Loading branch information
4141done committed Jan 12, 2024
1 parent fc4dd27 commit 590c3e4
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ env:

jobs:
build-oss-for-test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
Expand All @@ -47,10 +47,12 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: oss
path: /tmp/oss.tar
path: $TMPDIR/oss.tar
retention-days: 1
if-no-files-found: error

test-oss:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build-oss-for-test
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -83,7 +85,7 @@ jobs:
run: ./test.sh --type oss

build-latest-njs-for-test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: test-oss
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -116,9 +118,11 @@ jobs:
with:
name: latest-njs
path: /tmp/latest-njs.tar
retention-days: 1
if-no-files-found: error

test-latest-njs:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build-latest-njs-for-test
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -151,7 +155,7 @@ jobs:
run: ./test.sh --latest-njs --type oss

build-unprivileged-for-test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: test-oss
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -184,9 +188,11 @@ jobs:
with:
name: unprivileged
path: /tmp/unprivileged.tar
retention-days: 1
if-no-files-found: error

test-unprivileged:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build-unprivileged-for-test
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -220,7 +226,7 @@ jobs:

# After the tests are done, build multiarch and push to both github packages and dockerhub if we are on master/main
tag-and-push:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [test-oss, test-latest-njs, test-unprivileged]

if: |
Expand Down

0 comments on commit 590c3e4

Please sign in to comment.