From e3a8e4f1e689f555192839ab4d7295c6a77d01e1 Mon Sep 17 00:00:00 2001 From: ehco1996 Date: Sat, 1 Feb 2020 08:30:43 +0800 Subject: [PATCH] add push image to ci --- .github/workflows/release.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 89bf56e..22b75fe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: branches: master jobs: - goreleaser: + ci-ci-ci: runs-on: ubuntu-latest steps: - name: Set up Go 1.12 @@ -31,4 +31,12 @@ jobs: version: latest args: release env: - GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} + + - name: Publish Docker + uses: elgohr/Publish-Docker-Github-Action@2.12 + with: + name: ehco1996/v2scar + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + tags: "latest" \ No newline at end of file