From 2d71facf9b8ec0f3482bff3b46992732228a4f43 Mon Sep 17 00:00:00 2001 From: nadoo <287492+nadoo@users.noreply.github.com> Date: Fri, 25 Sep 2020 13:17:16 +0800 Subject: [PATCH] ci: add workflow to publish docker image --- .github/workflows/docker.yml | 20 ++++++++++++++++++++ README.md | 8 ++++---- 2 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..6045211 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,20 @@ +name: Publish Docker image +on: + release: + types: [published] + +jobs: + push_to_registry: + name: Push Docker image to Docker Hub + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v2 + - name: Push to Docker Hub + uses: docker/build-push-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + repository: nadoo/glider + tag_with_ref: true + \ No newline at end of file diff --git a/README.md b/README.md index 12ecbfd..d44c925 100644 --- a/README.md +++ b/README.md @@ -363,7 +363,7 @@ glider -config CONFIGPATH -listen :8080 -verbose ## Links -- [ipset](https://github.com/nadoo/ipset): ipset package for Go via netlink socket -- [conflag](https://github.com/nadoo/conflag): command line and config file parse support -- [ArchLinux](https://www.archlinux.org/packages/community/x86_64/glider): a great linux distribution with glider pre-built package -- [urlencode](https://www.w3schools.com/tags/ref_urlencode.asp): you should encode special characters in scheme url. e.g: `@`->`%40` +- [ipset](https://github.com/nadoo/ipset): ipset package for Go via netlink socket. +- [conflag](https://github.com/nadoo/conflag): a drop-in replacement for Go's standard flag package with config file support. +- [ArchLinux](https://www.archlinux.org/packages/community/x86_64/glider): a great linux distribution with glider pre-built package. +- [urlencode](https://www.w3schools.com/tags/ref_urlencode.asp): you should encode special characters in scheme url. e.g: `@`->`%40`