@@ -3,44 +3,43 @@ name: build
33on :
44 workflow_dispatch :
55 schedule :
6- - cron : " 0 0 1 * *"
6+ - cron : ' 0 0 1 * *'
77 push :
8- branches :
9- - " main"
10- tags :
11- - " * "
8+ branches :
9+ - ' main'
10+ tags :
11+ - ' * '
1212 paths-ignore :
13- - " **.md"
13+ - ' **.md'
1414 pull_request :
1515 branches :
16- - " main"
16+ - ' main'
1717 paths-ignore :
18- - " **.md"
19-
18+ - ' **.md'
19+
2020env :
2121 DOCKERHUB_SLUG : imoize/alpine-s6
2222 GHCR_SLUG : ghcr.io/imoize/alpine-s6
23- ALPINE_LATEST : 3.19
23+ ALPINE_LATEST : 3.21
2424
2525jobs :
2626 build :
2727 strategy :
2828 fail-fast : false
2929 matrix :
3030 alpine_version :
31- - 3.17
32- - 3.18
33- - 3.19
31+ - 3.20
32+ - 3.21
3433
3534 runs-on : ubuntu-latest
3635 permissions :
3736 contents : read
3837 packages : write
39-
38+
4039 steps :
4140 - name : Checkout Repository
4241 uses : actions/checkout@v4
43-
42+
4443 - name : Preparation
4544 id : prep
4645 run : |
5453 else
5554 LATEST="false"
5655 fi
57-
56+
5857 echo "image_version=$IMAGE_VERSION" >> "$GITHUB_OUTPUT"
5958 echo "alpine_version=$ALPINE_VERSION" >> "$GITHUB_OUTPUT"
6059 echo "latest=$LATEST" >> "$GITHUB_OUTPUT"
@@ -102,15 +101,15 @@ jobs:
102101 - name : Build and Push Docker Image
103102 if : ${{ github.event_name != 'pull_request' }}
104103 id : build-and-push
105- uses : docker/build-push-action@v5
104+ uses : docker/build-push-action@v6
106105 with :
107106 context : .
108107 platforms : linux/amd64,linux/arm64
109108 build-args : ALPINE_VERSION=${{ steps.prep.outputs.build_arg }}
110109 push : ${{ github.event_name != 'pull_request' }}
111110 labels : ${{ steps.meta.outputs.labels }}
112111 tags : ${{ steps.meta.outputs.tags }}
113-
112+
114113 - name : Docker Hub Description
115114 if : github.event_name != 'pull_request'
116115 uses : peter-evans/dockerhub-description@v4
@@ -132,4 +131,4 @@ jobs:
132131 docker pull ${{ env.DOCKERHUB_SLUG }}:${{ steps.prep.outputs.alpine_version }}
133132 docker image inspect ${{ env.DOCKERHUB_SLUG }}:${{ steps.prep.outputs.alpine_version }}
134133 docker pull ${{ env.GHCR_SLUG }}:${{ steps.prep.outputs.alpine_version }}
135- docker image inspect ${{ env.GHCR_SLUG }}:${{ steps.prep.outputs.alpine_version }}
134+ docker image inspect ${{ env.GHCR_SLUG }}:${{ steps.prep.outputs.alpine_version }}
0 commit comments