Skip to content

Commit 45b3847

Browse files
committed
Extract image name to env.IMAGE
1 parent 121be10 commit 45b3847

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- '*'
77

8+
env:
9+
IMAGE: zappi/nginx
10+
811
jobs:
912
github-release:
1013
runs-on: ubuntu-latest
@@ -30,7 +33,7 @@ jobs:
3033
id: metadata
3134
uses: docker/metadata-action@v5
3235
with:
33-
images: zappi/nginx
36+
images: ${{ env.IMAGE }}
3437
- name: Set up QEMU
3538
uses: docker/setup-qemu-action@v3
3639
- name: Set up Docker Buildx
@@ -55,4 +58,4 @@ jobs:
5558
with:
5659
username: ${{ secrets.DOCKER_HUB_USERNAME }}
5760
password: ${{ secrets.DOCKER_HUB_TOKEN }}
58-
repository: zappi/nginx
61+
repository: ${{ env.IMAGE }}

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- 'master'
77

8+
env:
9+
IMAGE: zappi/nginx
10+
811
jobs:
912
build:
1013
runs-on: ubuntu-latest
@@ -15,7 +18,7 @@ jobs:
1518
id: metadata
1619
uses: docker/metadata-action@v5
1720
with:
18-
images: zappi/nginx
21+
images: ${{ env.IMAGE }}
1922
- name: Set up QEMU
2023
uses: docker/setup-qemu-action@v3
2124
- name: Set up Docker Buildx

0 commit comments

Comments
 (0)