Skip to content

Commit 50df016

Browse files
committed
workflows: Bump github runner to ubuntu-24.04 or self-hosted
1 parent d7c2aef commit 50df016

File tree

3 files changed

+21
-25
lines changed

3 files changed

+21
-25
lines changed

.github/workflows/docker.yaml

+17-21
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
permissions:
2020
packages: write
2121
contents: read
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-24.04
2323
strategy:
2424
fail-fast: false
2525
matrix:
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Check out code
33-
uses: actions/checkout@v3.2.0
33+
uses: actions/checkout@v4
3434
with:
3535
fetch-depth: 0
3636
# Check https://github.com/livepeer/go-livepeer/pull/1891
@@ -43,25 +43,9 @@ jobs:
4343
- name: Set up Docker Buildx
4444
uses: docker/setup-buildx-action@v2
4545

46-
- name: Login to DockerHub
47-
uses: docker/login-action@v2
48-
if:
49-
${{ github.event_name == 'push' ||
50-
github.event.pull_request.head.repo.full_name == github.repository }}
51-
with:
52-
username: ${{ secrets.CI_DOCKERHUB_USERNAME }}
53-
password: ${{ secrets.CI_DOCKERHUB_TOKEN }}
54-
55-
# - name: Log in to the Container registry
56-
# uses: docker/login-action@v2
57-
# with:
58-
# registry: ghcr.io
59-
# username: ${{ github.actor }}
60-
# password: ${{ github.token }}
61-
6246
- name: Extract metadata (tags, labels) for Docker
6347
id: meta
64-
uses: docker/metadata-action@v4
48+
uses: docker/metadata-action@v5
6549
with:
6650
images: |
6751
${{ matrix.build.image }}
@@ -78,20 +62,32 @@ jobs:
7862
type=raw,value=${{ github.event.pull_request.head.ref }}
7963
type=raw,value=stable,enable=${{ startsWith(github.event.ref, 'refs/tags/v') }}
8064
65+
- name: Login to DockerHub
66+
uses: docker/login-action@v2
67+
if:
68+
${{ github.event_name == 'push' ||
69+
github.event.pull_request.head.repo.full_name == github.repository }}
70+
with:
71+
username: ${{ secrets.CI_DOCKERHUB_USERNAME }}
72+
password: ${{ secrets.CI_DOCKERHUB_TOKEN }}
73+
8174
- name: Build and push livepeer docker image
82-
uses: docker/build-push-action@v3
75+
uses: docker/build-push-action@v6
8376
with:
8477
build-args: |
8578
VERSION=${{ (github.ref_type == 'tag' && github.ref_name) || (github.event.pull_request.head.sha || github.sha) }}
8679
GITHUB_SHA=${{ (github.event.pull_request.head.sha || github.sha) }}
8780
context: .
8881
platforms: linux/amd64
82+
provenance: mode=max
83+
sbom: true
8984
push:
9085
${{ github.event_name == 'push' ||
9186
github.event.pull_request.head.repo.full_name == github.repository
9287
}}
93-
tags: ${{ steps.meta.outputs.tags }}
9488
file: ${{ matrix.build.path }}/Dockerfile
89+
tags: ${{ steps.meta.outputs.tags }}
90+
annotations: ${{ steps.meta.outputs.annotations }}
9591
labels: ${{ steps.meta.outputs.labels }}
9692
cache-from: type=gha
9793
cache-to: type=gha,mode=max

.github/workflows/release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
release:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-24.04
1313
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1414
steps:
1515
- name: checkout

.github/workflows/test.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414
jobs:
1515
test:
1616
name: Run tests defined for the project
17-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-24.04
1818
services:
1919
postgres:
2020
image: postgres:14-alpine
@@ -37,7 +37,7 @@ jobs:
3737

3838
steps:
3939
- name: checkout
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4141
with:
4242
fetch-depth: 0
4343
# Check https://github.com/livepeer/go-livepeer/pull/1891
@@ -77,7 +77,7 @@ jobs:
7777
runs-on: ubuntu-latest
7878
steps:
7979
- name: Check out code
80-
uses: actions/checkout@v3
80+
uses: actions/checkout@v4
8181
with:
8282
fetch-depth: 0
8383
ref: ${{ github.event.pull_request.head.sha }}

0 commit comments

Comments
 (0)