@@ -11,20 +11,20 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : Set up Go
14- uses : actions/setup-go@v2
14+ uses : actions/setup-go@v3
1515 with :
1616 go-version : 1.19
1717
1818 - name : Check out code into the Go module directory
19- uses : actions/checkout@v2
19+ uses : actions/checkout@v3
2020 with :
2121 fetch-depth : 0
2222
2323 - name : Download dependencies
2424 run : sudo apt update && sudo apt install -y build-essential libpng-dev
2525
2626 - name : Run GoReleaser
27- uses : goreleaser/goreleaser-action@v2
27+ uses : goreleaser/goreleaser-action@v3
2828 with :
2929 version : latest
3030 args : release --rm-dist
@@ -36,35 +36,37 @@ jobs:
3636 runs-on : ubuntu-latest
3737 steps :
3838 - name : Check out code into the Go module directory
39- uses : actions/checkout@v2
39+ uses : actions/checkout@v3
4040 with :
4141 fetch-depth : 0
4242
4343 - name : Login to GitHub Container Registry
44- uses : docker/login-action@v1
44+ uses : docker/login-action@v2
4545 with :
4646 registry : ghcr.io
4747 username : ${{ github.actor }}
4848 password : ${{ secrets.GITHUB_TOKEN }}
4949
5050 - name : Extract metadata (tags, labels) for Docker
5151 id : meta
52- uses : docker/metadata-action@v3
52+ uses : docker/metadata-action@v4
5353 with :
5454 images : ghcr.io/${{ github.repository }}
5555
5656 - name : Set up Docker Buildx
5757 id : buildx
58- uses : docker/setup-buildx-action@v1
58+ uses : docker/setup-buildx-action@v2
5959 with :
6060 buildkitd-flags : --debug
6161
6262 - name : Build and push Docker image
63- uses : docker/build-push-action@v2
63+ uses : docker/build-push-action@v3
6464 with :
6565 context : .
6666 push : true
6767 tags : ${{ steps.meta.outputs.tags }}
6868 labels : ${{ steps.meta.outputs.labels }}
6969 build-args : |
7070 TARGET_ENV=${{ matrix.release }}
71+ cache-from : type=gha
72+ cache-to : type=gha,mode=max
0 commit comments