Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

Commit a7e4f88

Browse files
committed
image build on tags
1 parent 6613304 commit a7e4f88

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/image.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
push:
1414
branches:
1515
- master
16+
tags:
17+
- "v*"
1618

1719
env:
1820
REGISTRY: ghcr.io
@@ -41,6 +43,11 @@ jobs:
4143
uses: docker/metadata-action@57396166ad8aefe6098280995947635806a0e6ea
4244
with:
4345
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
46+
tags: |
47+
type=ref,event=branch
48+
type=ref,event=pr
49+
type=semver,pattern={{version}}
50+
type=semver,pattern={{major}}.{{minor}}
4451
4552
- name: Build and push Docker image
4653
uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ See https://github.com/resmo/nip.io/blob/master/src/backend.conf.example for an
3333
#### Run the Container from ghcr:
3434

3535
```bash
36-
docker run -d -p 0.0.0.0:53:53/tcp -p 0.0.0.0:53:53/udp -v /data/backend.conf:/usr/local/bin/backend.conf --name nip.io ghcr.io/resmo/nip-io
36+
docker run -d -p 0.0.0.0:53:53/tcp -p 0.0.0.0:53:53/udp -v /data/backend.conf:/usr/local/bin/backend.conf --name nip.io ghcr.io/resmo/nip-io:master
3737
```
3838

3939
#### Or Build the Image:

0 commit comments

Comments
 (0)