Skip to content

Commit a863b7d

Browse files
authored
Updating build workflow with enhancements (#11)
* adding edge docker image tag for image based on main branch * updating readme with changed docker tag * only doing build when certain paths are changed
1 parent 3f3aef1 commit a863b7d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
- "bug-*"
99
tags:
1010
- "v*"
11+
paths:
12+
- "src/**"
13+
- "Dockerfile"
14+
- "go.mod"
15+
- "go.sum"
1116

1217
jobs:
1318
build:
@@ -23,6 +28,10 @@ jobs:
2328
images: |
2429
tibiadata/tibiadata-api-go
2530
ghcr.io/tibiadata/tibiadata-api-go
31+
tags: |
32+
type=edge
33+
type=semver,pattern=v{{version}}
34+
type=semver,pattern=v{{major}}.{{minor}}
2635
2736
- name: Set up QEMU
2837
uses: docker/setup-qemu-action@v1.2.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ docker run -p 127.0.0.1:80:8080/tcp --rm -it ghcr.io/tibiadata/tibiadata-api-go:
4141
```
4242
You can also use [Docker Hub](https://hub.docker.com/r/tibiadata/tibiadata-api-go) to pull your images from.
4343

44-
If you want to run the latest code you can switch from _latest_ to _main_.
44+
If you want to run the latest code you can switch from _latest_ to _edge_.
4545

4646
### Docker-compose
4747

0 commit comments

Comments
 (0)