@@ -18,7 +18,7 @@ A GitHub Action to download and load a Docker image from an artifact created by
1818
1919``` yaml
2020- name : Load Docker Image
21- uses : apicurio/apicurio-github-actions/load-docker-image@v1
21+ uses : apicurio/apicurio-github-actions/load-docker-image@v2
2222 with :
2323 artifact-name : ' docker-image'
2424` ` `
@@ -27,7 +27,7 @@ A GitHub Action to download and load a Docker image from an artifact created by
2727
2828` ` ` yaml
2929- name : Load Docker Image
30- uses : apicurio/apicurio-github-actions/load-docker-image@v1
30+ uses : apicurio/apicurio-github-actions/load-docker-image@v2
3131 with :
3232 artifact-name : ' my-app-image'
3333 image-file : ' ./images/my-app.tar'
@@ -39,7 +39,7 @@ A GitHub Action to download and load a Docker image from an artifact created by
3939
4040` ` ` yaml
4141- name : Load Docker Image from Existing File
42- uses : apicurio/apicurio-github-actions/load-docker-image@v1
42+ uses : apicurio/apicurio-github-actions/load-docker-image@v2
4343 with :
4444 download : ' false'
4545 image-file : ' ./pre-existing/my-app.tar'
6969 docker build -t my-app:latest .
7070
7171 - name : Save Docker image
72- uses : apicurio/apicurio-github-actions/save-docker-image@v1
72+ uses : apicurio/apicurio-github-actions/save-docker-image@v2
7373 with :
7474 image-name : ' my-app'
7575 tag : ' latest'
8282 steps :
8383 - name : Load Docker image
8484 id : load-image
85- uses : apicurio/apicurio-github-actions/load-docker-image@v1
85+ uses : apicurio/apicurio-github-actions/load-docker-image@v2
8686 with :
8787 artifact-name : ' my-app-docker-image'
8888 image-name : ' my-app'
@@ -129,7 +129,7 @@ jobs:
129129 runs-on: ubuntu-latest
130130 steps:
131131 - name: Build and save image
132- uses: apicurio/apicurio-github-actions/save-docker-image@v1
132+ uses: apicurio/apicurio-github-actions/save-docker-image@v2
133133 with:
134134 image-name: 'my-app'
135135 artifact-name: 'my-app-docker-image'
@@ -139,7 +139,7 @@ jobs:
139139 runs-on: ubuntu-latest
140140 steps:
141141 - name: Load Docker image
142- uses: apicurio/apicurio-github-actions/load-docker-image@v1
142+ uses: apicurio/apicurio-github-actions/load-docker-image@v2
143143 with:
144144 artifact-name: 'my-app-docker-image'
145145
@@ -151,7 +151,7 @@ jobs:
151151 runs-on: ubuntu-latest
152152 steps:
153153 - name: Load Docker image
154- uses: apicurio/apicurio-github-actions/load-docker-image@v1
154+ uses: apicurio/apicurio-github-actions/load-docker-image@v2
155155 with:
156156 artifact-name: 'my-app-docker-image'
157157
@@ -168,7 +168,7 @@ Verify that the loaded image matches expectations:
168168` ` ` yaml
169169- name: Load and verify Docker image
170170 id: load-image
171- uses: apicurio/apicurio-github-actions/load-docker-image@v1
171+ uses: apicurio/apicurio-github-actions/load-docker-image@v2
172172 with:
173173 artifact-name: 'production-image'
174174 image-name: 'my-app'
@@ -197,7 +197,7 @@ runs-on: ${{ matrix.os }}
197197
198198steps:
199199- name: Load Docker image
200- uses: apicurio/apicurio-github-actions/load-docker-image@v1
200+ uses: apicurio/apicurio-github-actions/load-docker-image@v2
201201 with:
202202 artifact-name: 'cross-platform-image'
203203` ` `
@@ -218,7 +218,7 @@ Load images only when needed:
218218
219219- name: Load Docker image if not exists
220220 if: steps.check-image.outputs.exists == 'false'
221- uses: apicurio/apicurio-github-actions/load-docker-image@v1
221+ uses: apicurio/apicurio-github-actions/load-docker-image@v2
222222 with:
223223 artifact-name: 'my-app-docker-image'
224224` ` `
@@ -229,14 +229,14 @@ Load multiple Docker images in a single job:
229229
230230` ` ` yaml
231231- name: Load application image
232- uses: apicurio/apicurio-github-actions/load-docker-image@v1
232+ uses: apicurio/apicurio-github-actions/load-docker-image@v2
233233 with:
234234 artifact-name: 'app-image'
235235 image-file: './images/app.tar'
236236 image-name: 'my-app'
237237
238238- name: Load database image
239- uses: apicurio/apicurio-github-actions/load-docker-image@v1
239+ uses: apicurio/apicurio-github-actions/load-docker-image@v2
240240 with:
241241 artifact-name: 'db-image'
242242 image-file: './images/db.tar'
@@ -254,7 +254,7 @@ Organize Docker images in specific directories:
254254
255255` ` ` yaml
256256- name: Load Docker Image to Custom Location
257- uses: apicurio/apicurio-github-actions/load-docker-image@v1
257+ uses: apicurio/apicurio-github-actions/load-docker-image@v2
258258 with:
259259 artifact-name: 'my-app-image'
260260 image-file: './build/artifacts/images/my-app-v1.2.3.tar'
@@ -273,7 +273,7 @@ Use when you already have the image file and want to skip the download step:
273273 cp /external/path/my-app.tar ./my-app.tar
274274
275275- name: Load existing Docker image
276- uses: apicurio/apicurio-github-actions/load-docker-image@v1
276+ uses: apicurio/apicurio-github-actions/load-docker-image@v2
277277 with:
278278 download: 'false'
279279 image-file: './my-app.tar'
@@ -297,14 +297,14 @@ Download only if the image file doesn't already exist:
297297
298298- name: Load from cache (skip download)
299299 if: steps.check-file.outputs.exists == 'true'
300- uses: apicurio/apicurio-github-actions/load-docker-image@v1
300+ uses: apicurio/apicurio-github-actions/load-docker-image@v2
301301 with:
302302 download: 'false'
303303 image-file: './cache/my-app.tar'
304304
305305- name: Download and load image
306306 if: steps.check-file.outputs.exists == 'false'
307- uses: apicurio/apicurio-github-actions/load-docker-image@v1
307+ uses: apicurio/apicurio-github-actions/load-docker-image@v2
308308 with:
309309 artifact-name: 'my-app-image'
310310 image-file: './cache/my-app.tar'
@@ -350,15 +350,15 @@ This action is designed to work seamlessly with the `save-docker-image` action:
350350` ` ` yaml
351351# Job 1: Save image
352352- name: Save Docker image
353- uses: apicurio/apicurio-github-actions/save-docker-image@v1
353+ uses: apicurio/apicurio-github-actions/save-docker-image@v2
354354 with:
355355 image-name: 'my-app'
356356 tag: 'v1.0.0'
357357 artifact-name: 'my-app-image'
358358
359359# Job 2: Load image (in different job/workflow)
360360- name: Load Docker image
361- uses: apicurio/apicurio-github-actions/load-docker-image@v1
361+ uses: apicurio/apicurio-github-actions/load-docker-image@v2
362362 with:
363363 artifact-name: 'my-app-image' # Same as save action
364364 image-name: 'my-app' # Same as save action
0 commit comments