From d714438bd3b8fc2314e95da0ac39508286da7f31 Mon Sep 17 00:00:00 2001 From: rzrbld Date: Wed, 29 Dec 2021 22:55:16 +0300 Subject: [PATCH] setup github actions --- .github/workflows/docker-publish.yml | 6 +++--- src/main.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 1972feb..d0817ed 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -3,10 +3,10 @@ name: Adminio-API Docker Build on: push: branches: [ master ] + tags: + - 'v*' pull_request: branches: [ master ] - tags: - - v* jobs: @@ -42,7 +42,7 @@ jobs: uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc with: context: . - push: true + push: ${{ github.event_name != 'pull_request' }} platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/src/main.go b/src/main.go index 585aa80..588b85f 100644 --- a/src/main.go +++ b/src/main.go @@ -55,7 +55,7 @@ func main() { fmt.Println("\033[33m" + ` Admin REST API for http://min.io (minio) s3 server - Version : 1.81 + Version : 1.82 Authors : rzrbld, 0x003e License : MIT GitHub : https://github.com/rzrbld/adminio-api