Skip to content

Commit a53b2f1

Browse files
committed
actions: Improve image's tags and labels
Set 'version' pattern for tags and added labels to image.
1 parent 376b300 commit a53b2f1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/dockerimage.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,19 @@ jobs:
3434
images: |
3535
vasilev/clojurescript
3636
ghcr.io/vasilev/clojurescript
37+
tags: |
38+
type=pep440,pattern={{version}}
39+
labels: |
40+
org.opencontainers.image.licenses=MIT, EPL-1.0, and more. Please see licensing terms for ClojureScript and [Node.js](https://hub.docker.com/_/node#License) first.
41+
3742
3843
- name: Debug Print metadata
39-
run: echo "${{ steps.metadata.outputs }}"
44+
run: echo '${{ steps.metadata.outputs.json }}'
4045

4146
- name: Build and push the image
4247
uses: docker/build-push-action@v2
4348
with:
4449
context: .
4550
push: true
4651
tags: ${{ steps.metadata.outputs.tags }}
52+
labels: ${{ steps.metadata.outputs.labels }}

0 commit comments

Comments
 (0)