Skip to content

Commit 8378d57

Browse files
committed
ci: add global expressions job
Signed-off-by: CrazyMax <[email protected]>
1 parent 9a15d5d commit 8378d57

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,27 @@ jobs:
165165
org.opencontainers.image.description=this is a "good" example
166166
org.opencontainers.image.vendor=MyCompany
167167
168+
global-exps:
169+
runs-on: ubuntu-latest
170+
steps:
171+
-
172+
name: Checkout
173+
uses: actions/checkout@v3
174+
-
175+
name: Docker meta
176+
uses: ./
177+
with:
178+
images: |
179+
${{ env.DOCKER_IMAGE }}
180+
ghcr.io/name/app
181+
tags: |
182+
type=sha
183+
type=raw,value=gexp-branch-{{branch}}
184+
type=raw,value=gexp-date-{{date 'YYYYMMDD'}}
185+
type=raw,value=gexp-tag-{{tag}}
186+
type=raw,value=gexp-baseref-{{base_ref}}
187+
type=raw,value=gexp-defbranch,enable={{is_default_branch}}
188+
168189
json:
169190
runs-on: ubuntu-latest
170191
steps:

0 commit comments

Comments
 (0)