Skip to content

Commit 228dd23

Browse files
committed
try: build tags
1 parent 4880c05 commit 228dd23

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/docker-image.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,23 @@ on:
44
push:
55
branches:
66
- 'master-pokeapi'
7+
tags:
8+
- '*.*.*'
79

810
jobs:
911
docker:
1012
runs-on: ubuntu-latest
1113
steps:
14+
-
15+
name: Docker meta
16+
id: docker_meta
17+
uses: crazy-max/ghaction-docker-meta@v1
18+
with:
19+
# list of Docker images to use as base name for tags
20+
images: |
21+
pokeapi/graphiql
22+
# add git short SHA as Docker tag
23+
tag-sha: false
1224
-
1325
name: Set up QEMU
1426
uses: docker/setup-qemu-action@v1
@@ -27,7 +39,8 @@ jobs:
2739
uses: docker/build-push-action@v2
2840
with:
2941
push: true
30-
tags: pokeapi/graphiql:latest
42+
tags: ${{ steps.docker_meta.outputs.tags }}
43+
labels: ${{ steps.docker_meta.outputs.labels }}
3144
-
3245
name: Image digest
3346
run: echo ${{ steps.docker_build.outputs.digest }}

0 commit comments

Comments
 (0)