+6
-2
.github/workflows/build-and-push-ghcr.yaml
+6
-2
.github/workflows/build-and-push-ghcr.yaml
···
4
4
branches:
5
5
- main
6
6
- pdsv2
7
+
tags:
8
+
- v*
7
9
env:
8
10
REGISTRY: ghcr.io
9
11
USERNAME: ${{ github.actor }}
···
36
38
37
39
- name: Extract Docker metadata
38
40
id: meta
39
-
uses: docker/metadata-action@v4
41
+
uses: docker/metadata-action@v5
40
42
with:
41
43
images: |
42
44
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
43
45
tags: |
44
-
type=sha,enable=true,priority=100,suffix=,format=long
46
+
type=semver,pattern={{version}}
47
+
type=semver,pattern={{major}}.{{minor}}
48
+
type=sha,format=long
45
49
46
50
- name: Build and push Docker image
47
51
id: build-and-push