Skip to content

Commit

Permalink
feat: bump action dependencies to use node20 runtime (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenrui333 authored Dec 29, 2023
1 parent 7f550c3 commit a151c70
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@v5
with:
go-version: "1.21"
id: go
Expand All @@ -35,7 +35,7 @@ jobs:
${{ runner.os }}-go-
- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: tidy
run: make tidy
Expand All @@ -50,7 +50,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@v5
with:
go-version: "1.21"
id: go
Expand All @@ -65,7 +65,7 @@ jobs:
${{ runner.os }}-go-
- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: build
run: |
Expand All @@ -77,7 +77,7 @@ jobs:
cp ./build/Dockerfile /tmp/ehco/Dockerfile
- name: Upload binaries
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: binaries
path: /tmp/ehco
Expand All @@ -95,7 +95,7 @@ jobs:
platform: [amd64, arm64]
steps:
- name: Download binaries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: binaries
path: /tmp/ehco
Expand All @@ -104,19 +104,19 @@ jobs:
cp /tmp/ehco/ehco-${{ matrix.platform }} /tmp/ehco/ehco
- name: Set up qemu
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

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

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build multi-platform image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
id: build
with:
context: /tmp/ehco
Expand All @@ -131,7 +131,7 @@ jobs:
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
- name: Upload digest
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: digests
path: /tmp/digests/*
Expand All @@ -144,7 +144,7 @@ jobs:
- build-image
steps:
- name: Download digests
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: digests
path: /tmp/digests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@v5
with:
go-version: "1.21"
id: go
Expand All @@ -35,7 +35,7 @@ jobs:
${{ runner.os }}-go-
- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: tidy
run: make tidy
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v5
- uses: actions/stale@v9
with:
exempt-all-pr-assignees: true
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: nightly-build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Golang with cache
id: golang-with-cache
uses: magnetikonline/action-golang-cache@v4
Expand All @@ -31,4 +31,4 @@ jobs:
release_name: nightly
goversion: "1.21.1"
overwrite: true
retry: 10
retry: 10
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
steps:
- uses: actions/checkout@master
- name: set up qemu
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

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

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand All @@ -30,7 +30,7 @@ jobs:
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT

- name: Build multi-platform image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
tags: "ehco1996/ehco:${{ steps.vars.outputs.tag }}"
Expand All @@ -42,19 +42,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@v5
with:
go-version: "1.21"
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Get dependencies
run: go mod download

- name: GoReleaser Action
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release
Expand Down

0 comments on commit a151c70

Please sign in to comment.