Skip to content

Commit

Permalink
ci: upgrade all workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Mar 12, 2023
1 parent 75865ca commit 2e15112
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 36 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: binaries

jobs:
binaries:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Checkout source
Expand All @@ -17,9 +17,9 @@ jobs:

- name: Setup golang
id: golang
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18.1
go-version: ^1.19.0

- name: Run generate
id: generate
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: changes

jobs:
changelog:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Checkout source
Expand All @@ -19,9 +19,9 @@ jobs:

- name: Setup golang
id: golang
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18.1
go-version: ^1.19.0

- name: Run changelog
id: changelog
Expand All @@ -34,12 +34,12 @@ jobs:
author_name: GitHub Actions
author_email: [email protected]
add: CHANGELOG.md
message: Automated changelog update
message: "docs: automated changelog update"
push: true
commit: --signoff

envvars:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Checkout source
Expand All @@ -50,9 +50,9 @@ jobs:

- name: Setup golang
id: golang
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18.1
go-version: ^1.19.0

- name: Generate envvars
id: envvars
Expand All @@ -65,12 +65,12 @@ jobs:
author_name: GitHub Actions
author_email: [email protected]
add: docs/partials/envvars.md
message: Automated envvars update
message: "docs: automated envvars update"
push: true
commit: --signoff

labels:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Checkout source
Expand All @@ -81,9 +81,9 @@ jobs:

- name: Setup golang
id: golang
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18.1
go-version: ^1.19.0

- name: Generate labels
id: labels
Expand All @@ -96,7 +96,7 @@ jobs:
author_name: GitHub Actions
author_email: [email protected]
add: docs/partials/labels.md
message: Automated labels update
message: "docs: automated labels update"
push: true
commit: --signoff

Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: docker

jobs:
docker:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

strategy:
matrix:
Expand All @@ -36,9 +36,9 @@ jobs:

- name: Setup golang
id: golang
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18.1
go-version: ^1.19.0

- name: Run generate
id: generate
Expand All @@ -58,7 +58,7 @@ jobs:

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: |
Expand All @@ -79,23 +79,23 @@ jobs:
- name: Setup qemu
id: qemu
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2

- name: Setup buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Hub login
id: login1
uses: docker/login-action@v1
uses: docker/login-action@v2
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Quay login
id: login2
uses: docker/login-action@v1
uses: docker/login-action@v2
if: github.event_name != 'pull_request'
with:
registry: quay.io
Expand All @@ -104,7 +104,7 @@ jobs:

- name: Build image
id: publish
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
Expand All @@ -115,7 +115,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}

manifest:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: docker

steps:
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
ignore_missing: true

readme:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: docker

steps:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
id: hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 0.98.0
hugo-version: latest
extended: true

- name: Run docs
id: docs
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: general

jobs:
general:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Checkout source
Expand All @@ -20,9 +20,9 @@ jobs:

- name: Setup golang
id: golang
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18.1
go-version: ^1.19.0

- name: Run generate
id: generate
Expand All @@ -48,4 +48,13 @@ jobs:
id: test
run: make test

# - name: Coverage report
# id: codacy
# if: github.ref == 'refs/heads/master'
# uses: codacy/codacy-coverage-reporter-action@v1
# with:
# project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
# coverage-reports: coverage.out
# force-coverage-parser: go

...
2 changes: 1 addition & 1 deletion .github/workflows/kustomize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: kustomize

jobs:
generate:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Checkout source
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: lock
"on":
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

permissions:
actions: write
issues: write
pull-requests: write

Expand All @@ -15,9 +15,9 @@ concurrency:

jobs:
execute:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: dessant/lock-threads@v3
- uses: dessant/lock-threads@v4

...
4 changes: 2 additions & 2 deletions .github/workflows/react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ concurrency:

jobs:
execute:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: dessant/reaction-comments@v2
- uses: dessant/reaction-comments@v3

...

0 comments on commit 2e15112

Please sign in to comment.