3232 runs-on : ubuntu-latest
3333 steps :
3434 - name : Checkout
35- uses : actions/checkout@v2
35+ uses : actions/checkout@v3
3636
3737 - name : Shellcheck
3838 uses : reviewdog/action-shellcheck@v1
@@ -45,10 +45,10 @@ jobs:
4545 test :
4646 # to ignore tests on release
4747 if : ${{ (github.event.ref_type != 'tag') }}
48- runs-on : ubuntu-18.04
48+ runs-on : ubuntu-latest
4949 steps :
5050 - name : Checkout
51- uses : actions/checkout@v2
51+ uses : actions/checkout@v3
5252
5353 - name : Set Branch
5454 run : |
7474 needs : ['lint', 'test']
7575 steps :
7676 - name : Checkout
77- uses : actions/checkout@v2
77+ uses : actions/checkout@v3
7878
7979 - name : Set Image Org
8080 # sets the default IMAGE_ORG to openebs
8585 - name : Set Build Date
8686 id : date
8787 run : |
88- echo "::set-output name= DATE:: $(date -u +'%Y-%m-%dT%H:%M:%S%Z')"
88+ echo "DATE= $(date -u +'%Y-%m-%dT%H:%M:%S%Z')" >> $GITHUB_OUTPUT
8989
9090 - name : Set tag
9191 run : |
@@ -99,25 +99,24 @@ jobs:
9999
100100 - name : Docker meta
101101 id : docker_meta
102- uses : crazy-max/ghaction-docker-meta@v1
102+ uses : docker/metadata-action@v4
103103 with :
104104 # add each registry to which the image needs to be pushed here
105105 images : |
106106 ${{ env.IMAGE_ORG }}/cstor-base
107107 quay.io/${{ env.IMAGE_ORG }}/cstor-base
108108 ghcr.io/${{ env.IMAGE_ORG }}/cstor-base
109- tag-latest : false
110- tag-custom-only : true
111- tag-custom : |
112- ${{ env.TAG }}
109+ tags : |
110+ type=raw,value=latest,enable=false
111+ type=raw,value=${{ env.IMAGE_TAG }}
113112
114113 - name : Print Tag info
115114 run : |
116115 echo "BRANCH: ${BRANCH}"
117116 echo "${{ steps.docker_meta.outputs.tags }}"
118117
119118 - name : Set up QEMU
120- uses : docker/setup-qemu-action@v1
119+ uses : docker/setup-qemu-action@v2
121120 with :
122121 platforms : all
123122
@@ -133,27 +132,27 @@ jobs:
133132 version : v0.5.1
134133
135134 - name : Login to Docker Hub
136- uses : docker/login-action@v1
135+ uses : docker/login-action@v2
137136 with :
138137 username : ${{ secrets.DOCKERHUB_USERNAME }}
139138 password : ${{ secrets.DOCKERHUB_TOKEN }}
140139
141140 - name : Login to Quay
142- uses : docker/login-action@v1
141+ uses : docker/login-action@v2
143142 with :
144143 registry : quay.io
145144 username : ${{ secrets.QUAY_USERNAME }}
146145 password : ${{ secrets.QUAY_TOKEN }}
147146
148147 - name : Login to GHCR
149- uses : docker/login-action@v1
148+ uses : docker/login-action@v2
150149 with :
151150 registry : ghcr.io
152151 username : ${{ github.actor }}
153152 password : ${{ secrets.GITHUB_TOKEN }}
154153
155154 - name : Build & Push Image
156- uses : docker/build-push-action@v2
155+ uses : docker/build-push-action@v4
157156 with :
158157 context : .
159158 file : ./docker/cstor-base.Dockerfile
@@ -173,7 +172,7 @@ jobs:
173172 needs : ['lint', 'cstor-base']
174173 steps :
175174 - name : Checkout
176- uses : actions/checkout@v2
175+ uses : actions/checkout@v3
177176
178177 - name : Set Image Org
179178 # sets the default IMAGE_ORG to openebs
@@ -184,7 +183,7 @@ jobs:
184183 - name : Set Build Date
185184 id : date
186185 run : |
187- echo "::set-output name= DATE:: $(date -u +'%Y-%m-%dT%H:%M:%S%Z')"
186+ echo "DATE= $(date -u +'%Y-%m-%dT%H:%M:%S%Z')" >> $GITHUB_OUTPUT
188187
189188 - name : Set tag
190189 run : |
@@ -198,56 +197,55 @@ jobs:
198197
199198 - name : Docker meta
200199 id : docker_meta
201- uses : crazy-max/ghaction-docker-meta@v1
200+ uses : docker/metadata-action@v4
202201 with :
203202 # add each registry to which the image needs to be pushed here
204203 images : |
205204 ${{ env.IMAGE_ORG }}/cstor-pool
206205 quay.io/${{ env.IMAGE_ORG }}/cstor-pool
207206 ghcr.io/${{ env.IMAGE_ORG }}/cstor-pool
208- tag-latest : false
209- tag-custom-only : true
210- tag-custom : |
211- ${{ env.TAG }}
207+ tags : |
208+ type=raw,value=latest,enable=false
209+ type=raw,value=${{ env.IMAGE_TAG }}
212210
213211 - name : Print Tag info
214212 run : |
215213 echo "BRANCH: ${BRANCH}"
216214 echo "${{ steps.docker_meta.outputs.tags }}"
217215
218216 - name : Set up QEMU
219- uses : docker/setup-qemu-action@v1
217+ uses : docker/setup-qemu-action@v2
220218 with :
221219 platforms : all
222220
223221 - name : Set up Docker Buildx
224222 id : buildx
225- uses : docker/setup-buildx-action@v1
223+ uses : docker/setup-buildx-action@v2
226224 with :
227225 version : v0.5.1
228226
229227 - name : Login to Docker Hub
230- uses : docker/login-action@v1
228+ uses : docker/login-action@v2
231229 with :
232230 username : ${{ secrets.DOCKERHUB_USERNAME }}
233231 password : ${{ secrets.DOCKERHUB_TOKEN }}
234232
235233 - name : Login to Quay
236- uses : docker/login-action@v1
234+ uses : docker/login-action@v2
237235 with :
238236 registry : quay.io
239237 username : ${{ secrets.QUAY_USERNAME }}
240238 password : ${{ secrets.QUAY_TOKEN }}
241239
242240 - name : Login to GHCR
243- uses : docker/login-action@v1
241+ uses : docker/login-action@v2
244242 with :
245243 registry : ghcr.io
246244 username : ${{ github.actor }}
247245 password : ${{ secrets.GITHUB_TOKEN }}
248246
249247 - name : Build & Push Image
250- uses : docker/build-push-action@v2
248+ uses : docker/build-push-action@v4
251249 with :
252250 context : .
253251 file : ./docker/cstor.Dockerfile
0 commit comments