From 3cf4f5d787fc06fdfa513e475b1962b22addc904 Mon Sep 17 00:00:00 2001 From: Tobias Lindberg Date: Fri, 31 Dec 2021 10:30:11 +0100 Subject: [PATCH 1/3] adding edge docker image tag for image based on main branch --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0589c378..dca13d6a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,10 @@ jobs: images: | tibiadata/tibiadata-api-go ghcr.io/tibiadata/tibiadata-api-go + tags: | + type=edge + type=semver,pattern=v{{version}} + type=semver,pattern=v{{major}}.{{minor}} - name: Set up QEMU uses: docker/setup-qemu-action@v1.2.0 From f30c52a776dac017e98cbd0608d460f8e6941bc4 Mon Sep 17 00:00:00 2001 From: Tobias Lindberg Date: Fri, 31 Dec 2021 10:38:25 +0100 Subject: [PATCH 2/3] updating readme with changed docker tag --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 063ba53b..1f41ac68 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ docker run -p 127.0.0.1:80:8080/tcp --rm -it ghcr.io/tibiadata/tibiadata-api-go: ``` You can also use [Docker Hub](https://hub.docker.com/r/tibiadata/tibiadata-api-go) to pull your images from. -If you want to run the latest code you can switch from _latest_ to _main_. +If you want to run the latest code you can switch from _latest_ to _edge_. ### Docker-compose From 00494c5497487308c10d0d8f943d5301ce8910a4 Mon Sep 17 00:00:00 2001 From: Tobias Lindberg Date: Fri, 31 Dec 2021 10:41:03 +0100 Subject: [PATCH 3/3] only doing build when certain paths are changed --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dca13d6a..9499cfdc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,11 @@ on: - "bug-*" tags: - "v*" + paths: + - "src/**" + - "Dockerfile" + - "go.mod" + - "go.sum" jobs: build: