File tree Expand file tree Collapse file tree 3 files changed +15
-30
lines changed
Expand file tree Collapse file tree 3 files changed +15
-30
lines changed Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 steps :
1111 - name : Checkout
12- uses : actions/checkout@v3
13- - name : Unshallow
14- run : git fetch --prune --unshallow
12+ uses : actions/checkout@v6
13+ with :
14+ fetch-depth : 0
1515 - name : Extract branch name
1616 shell : bash
1717 run : echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
1818 id : extract_branch
19- - name : Enable experimental on dockerd
20- run : |
21- echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json
22- sudo service docker restart
19+ - name : Set up QEMU
20+ uses : docker/setup-qemu-action@v3
2321 - name : Set up Docker Buildx
24- id : buildx
25- uses : docker/setup-buildx-action@v2
26- with :
27- version : latest
22+ uses : docker/setup-buildx-action@v3
2823 - name : Docker login
2924 run : echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin
3025 - name : Make release
3126 run : make release
3227 env :
33- DOCKER_CLI_EXPERIMENTAL : enabled
3428 TAG : ${{ env.GITHUB_SHA }}
3529 IMAGE_TAG : ${{ steps.extract_branch.outputs.branch }}
Original file line number Diff line number Diff line change 1313 steps :
1414 # Checkout should always be before setup-go to ensure caching is working
1515 - name : checkout
16- uses : actions/checkout@v3
17- with :
18- fetch-depth : 1
16+ uses : actions/checkout@v6
1917 - name : Install Go
20- uses : actions/setup-go@v1
18+ uses : actions/setup-go@v6
2119 with :
2220 go-version : ${{ matrix.go-version }}
2321 - name : Run unit tests
@@ -32,11 +30,11 @@ jobs:
3230 steps :
3331 # Checkout should always be before setup-go to ensure caching is working
3432 - name : checkout
35- uses : actions/checkout@v2
33+ uses : actions/checkout@v6
3634 with :
3735 fetch-depth : 1
3836 - name : Install Go
39- uses : actions/setup-go@v1
37+ uses : actions/setup-go@v6
4038 with :
4139 go-version : ${{ matrix.go-version }}
4240 - name : Building binary
Original file line number Diff line number Diff line change 99 steps :
1010 - name : Checkout
1111 uses : actions/checkout@v3
12- - name : Unshallow
13- run : git fetch --prune --unshallow
12+ with :
13+ fetch-depth : 0
1414 - name : Highest tag
1515 id : highestTag
1616 run : |
1717 git fetch --depth=1 origin +refs/tags/*:refs/tags/*
1818 echo highest=$(git tag | grep -E "^v?([0-9]+\.)+[0-9]+$" | sort -r -V | head -n1) >> $GITHUB_OUTPUT
19- - name : Enable experimental on dockerd
20- run : |
21- echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json
22- sudo service docker restart
19+ - name : Set up QEMU
20+ uses : docker/setup-qemu-action@v3
2321 - name : Set up Docker Buildx
24- id : buildx
25- uses : docker/setup-buildx-action@v2
26- with :
27- version : latest
22+ uses : docker/setup-buildx-action@v3
2823 - name : Docker login
2924 run : echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin
3025 - name : Get tag
@@ -33,13 +28,11 @@ jobs:
3328 - name : Make release
3429 run : make release
3530 env :
36- DOCKER_CLI_EXPERIMENTAL : enabled
3731 TAG : ${{ steps.tagName.outputs.tag }}
3832 IMAGE_TAG : ${{ steps.tagName.outputs.tag }}
3933 - name : Push latest
4034 if : steps.tagName.outputs.tag == steps.highestTag.outputs.highest
4135 run : make release
4236 env :
43- DOCKER_CLI_EXPERIMENTAL : enabled
4437 TAG : ${{ steps.tagName.outputs.tag }}
4538 IMAGE_TAG : latest
You can’t perform that action at this time.
0 commit comments