Skip to content

Commit

Permalink
Merge pull request #1827 from thomasferrandiz/update-actions
Browse files Browse the repository at this point in the history
update github actions
thomasferrandiz authored Nov 21, 2023
2 parents c498d00 + e01f08a commit 9fbcf29
Showing 7 changed files with 33 additions and 28 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -12,10 +12,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go 1.x
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

@@ -32,48 +32,48 @@ jobs:
done
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Build Docker image for amd64
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
file: images/Dockerfile.amd64
push: false

- name: Build Docker image for arm
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
file: images/Dockerfile.arm
push: false

- name: Build Docker image for arm64
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
file: images/Dockerfile.arm64
push: false

- name: Build Docker image for s390x
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
file: images/Dockerfile.s390x
push: false

- name: Build Docker image for ppc64le
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
file: images/Dockerfile.ppc64le
push: false

- name: Build Docker image for mips64le
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
file: images/Dockerfile.mips64le
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -41,10 +41,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go 1.x
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

6 changes: 3 additions & 3 deletions .github/workflows/e2eTests.yaml
Original file line number Diff line number Diff line change
@@ -8,11 +8,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ^1.19
go-version: ^1.20
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run tests
id: testing
continue-on-error: true
11 changes: 8 additions & 3 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build flannel
name: run golangci-lint

on: [push, pull_request]

@@ -7,8 +7,13 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v2.5.2
uses: golangci/golangci-lint-action@v3.7.0
with:
version: v1.54
args: "--out-${NO_FUTURE}format colored-line-number --skip-dirs='backend/udp' --timeout=5m"
4 changes: 2 additions & 2 deletions .github/workflows/k3s-e2eTests.yml
Original file line number Diff line number Diff line change
@@ -12,9 +12,9 @@ jobs:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Go 1.x
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: build flannel image
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -16,10 +16,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go 1.x
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

@@ -98,10 +98,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go 1.x
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

@@ -174,10 +174,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go 1.x
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

4 changes: 2 additions & 2 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
@@ -30,10 +30,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go 1.x
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

0 comments on commit 9fbcf29

Please sign in to comment.