Skip to content

Commit 5c1c426

Browse files
committed
use metadata-action for ci since its ...better
1 parent adb183d commit 5c1c426

File tree

2 files changed

+14
-61
lines changed

2 files changed

+14
-61
lines changed

.github/workflows/deploy.yaml renamed to .github/workflows/publish.yaml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
name: Deploy
1+
name: Publish
2+
23
on:
34
push:
45
branches:
5-
- master
6-
7-
env:
8-
IMAGE_NAME: ghcr.io/${{ github.repository }}
6+
- 'master'
7+
tags:
8+
- 'v*'
9+
pull_request:
10+
branches:
11+
- 'master'
912

1013
jobs:
1114
report:
@@ -40,9 +43,12 @@ jobs:
4043
id: meta
4144
uses: docker/metadata-action@v4
4245
with:
43-
images: |
44-
${{env.IMAGE_NAME}}:${{ github.ref_name }}
45-
${{env.IMAGE_NAME}}:master
46+
tags: |
47+
type=ref,event=branch
48+
type=ref,event=pr
49+
type=semver,pattern={{version}}
50+
type=semver,pattern={{major}}.{{minor}}
51+
type=sha
4652
4753
- name: Build and push Docker images
4854
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc

.github/workflows/release.yaml

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)