From 52bcbab2dacaf2f9079e48bd116c55f360d12e8e Mon Sep 17 00:00:00 2001 From: Sadegh Hayeri Date: Sat, 7 Dec 2019 18:11:43 +0330 Subject: [PATCH] Add docker build --- .github/workflows/publish.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b830afd..488621c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,6 +18,19 @@ jobs: - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + + publish-docker-hub: + needs: [publish-npm] + runs-on: [ubuntu-latest] + steps: + - uses: actions/checkout@master + - name: Publish to Registry + uses: elgohr/Publish-Docker-Github-Action@master + with: + name: sadeghhayeri/green-tunnel + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + tag_names: true build-for-mac: runs-on: macOS-latest