Skip to content

Commit 46fc87f

Browse files
author
Paulo Gomes
committed
Update GH Actions
Signed-off-by: Paulo Gomes <[email protected]>
1 parent 1171efe commit 46fc87f

File tree

5 files changed

+27
-27
lines changed

5 files changed

+27
-27
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: checkout
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717
- name: Setup Go
18-
uses: actions/setup-go@v2
18+
uses: actions/setup-go@v3
1919
with:
2020
go-version: 1.17.x
2121
- name: Restore go cache
22-
uses: actions/cache@v1
22+
uses: actions/cache@v3
2323
with:
2424
# the ff is mounted into the container as ~/go/pkg/mod
2525
path: /home/runner/work/_temp/_github_home/go/pkg/mod
@@ -37,9 +37,9 @@ jobs:
3737
runs-on: [self-hosted, Linux, ARM64, equinix]
3838
steps:
3939
- name: Checkout
40-
uses: actions/checkout@v2
40+
uses: actions/checkout@v3
4141
- name: Setup Go
42-
uses: actions/setup-go@v2
42+
uses: actions/setup-go@v3
4343
with:
4444
go-version: 1.17.x
4545
- name: Run tests
@@ -53,13 +53,13 @@ jobs:
5353
runs-on: macos-10.15
5454
steps:
5555
- name: Checkout
56-
uses: actions/checkout@v2
56+
uses: actions/checkout@v3
5757
- name: Setup Go
58-
uses: actions/setup-go@v2
58+
uses: actions/setup-go@v3
5959
with:
6060
go-version: 1.17.x
6161
- name: Restore Go cache
62-
uses: actions/cache@v1
62+
uses: actions/cache@v3
6363
with:
6464
path: /home/runner/work/_temp/_github_home/go/pkg/mod
6565
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

.github/workflows/cifuzz.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616
- name: Restore Go cache
17-
uses: actions/cache@v1
17+
uses: actions/cache@v3
1818
with:
1919
path: /home/runner/work/_temp/_github_home/go/pkg/mod
2020
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

.github/workflows/nightly.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818
- name: Setup QEMU
19-
uses: docker/setup-qemu-action@v1
19+
uses: docker/setup-qemu-action@v2
2020
with:
2121
platforms: all
2222
- name: Setup Docker Buildx
2323
id: buildx
24-
uses: docker/setup-buildx-action@v1
24+
uses: docker/setup-buildx-action@v2
2525
with:
2626
buildkitd-flags: "--debug"
2727
- name: Build multi-arch container image
28-
uses: docker/build-push-action@v2
28+
uses: docker/build-push-action@v3
2929
with:
3030
push: false
3131
builder: ${{ steps.buildx.outputs.name }}

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
build-push:
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
2626
- name: Setup Kustomize
2727
uses: fluxcd/pkg/actions/kustomize@main
2828
- name: Prepare
@@ -35,32 +35,32 @@ jobs:
3535
echo ::set-output name=BUILD_DATE::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
3636
echo ::set-output name=VERSION::${VERSION}
3737
- name: Setup QEMU
38-
uses: docker/setup-qemu-action@v1
38+
uses: docker/setup-qemu-action@v2
3939
- name: Setup Docker Buildx
4040
id: buildx
41-
uses: docker/setup-buildx-action@v1
41+
uses: docker/setup-buildx-action@v2
4242
- name: Login to GitHub Container Registry
43-
uses: docker/login-action@v1
43+
uses: docker/login-action@v2
4444
with:
4545
registry: ghcr.io
4646
username: fluxcdbot
4747
password: ${{ secrets.GHCR_TOKEN }}
4848
- name: Login to Docker Hub
49-
uses: docker/login-action@v1
49+
uses: docker/login-action@v2
5050
with:
5151
username: fluxcdbot
5252
password: ${{ secrets.DOCKER_FLUXCD_PASSWORD }}
5353
- name: Generate images meta
5454
id: meta
55-
uses: docker/metadata-action@v3
55+
uses: docker/metadata-action@v4
5656
with:
5757
images: |
5858
fluxcd/${{ env.CONTROLLER }}
5959
ghcr.io/fluxcd/${{ env.CONTROLLER }}
6060
tags: |
6161
type=raw,value=${{ steps.prep.outputs.VERSION }}
6262
- name: Publish images
63-
uses: docker/build-push-action@v2
63+
uses: docker/build-push-action@v3
6464
with:
6565
push: true
6666
builder: ${{ steps.buildx.outputs.name }}
@@ -92,7 +92,7 @@ jobs:
9292
- uses: anchore/sbom-action/download-syft@v0
9393
- name: Create release and SBOM
9494
if: startsWith(github.ref, 'refs/tags/v')
95-
uses: goreleaser/goreleaser-action@v2
95+
uses: goreleaser/goreleaser-action@v3
9696
with:
9797
version: latest
9898
args: release --release-notes=config/release/notes.md --rm-dist --skip-validate

.github/workflows/scan.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: FOSSA
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
2121
- name: Run FOSSA scan and upload build data
2222
uses: fossa-contrib/fossa-action@v1
2323
with:
@@ -30,12 +30,12 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Checkout repository
33-
uses: actions/checkout@v2
33+
uses: actions/checkout@v3
3434
- name: Initialize CodeQL
35-
uses: github/codeql-action/init@v1
35+
uses: github/codeql-action/init@v2
3636
with:
3737
languages: go
3838
- name: Autobuild
39-
uses: github/codeql-action/autobuild@v1
39+
uses: github/codeql-action/autobuild@v2
4040
- name: Perform CodeQL Analysis
41-
uses: github/codeql-action/analyze@v1
41+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)