From 9e5ba1ba85b67a073b7ed126a8be8f58302e1947 Mon Sep 17 00:00:00 2001 From: Lucien Shui Date: Tue, 26 Nov 2019 17:59:23 +0800 Subject: [PATCH] Add label in dockerfile, remove docker push from ci --- .github/workflows/upload-to-release.yml | 30 ------------------------- Dockerfile | 2 ++ 2 files changed, 2 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/upload-to-release.yml diff --git a/.github/workflows/upload-to-release.yml b/.github/workflows/upload-to-release.yml deleted file mode 100644 index 5e6dc48..0000000 --- a/.github/workflows/upload-to-release.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Docker Release - -on: - release: - types: [published] - -jobs: - - release: - if: github.repository == 'PasteUs/golang-alpine' - name: Run on ${{ matrix.os }} and push - runs-on: ${{ matrix.os }} - - strategy: - matrix: - os: [ubuntu-latest] - - steps: - - name: Check out code - uses: actions/checkout@v1 - - - name: Publish Docker - uses: LucienShui/Publish-Docker-Github-Action@2.7.1 - with: - name: registry.cn-hangzhou.aliyuncs.com/pasteus/golang-alpine - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - registry: registry.cn-hangzhou.aliyuncs.com - dockerfile: Dockerfile - tag_names: true diff --git a/Dockerfile b/Dockerfile index e8bf45b..25181ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1,4 @@ FROM golang:1.13-alpine +LABEL maintainer="Lucien Shui" \ + email="lucien@lucien.ink" RUN apk --no-cache add build-base