From cbc5d01dca3ee0bc06e2dc607eab5edabd869f74 Mon Sep 17 00:00:00 2001 From: brian Date: Sat, 2 May 2020 16:51:03 +0100 Subject: [PATCH] feat: add github action for publishing builds to docker hub --- .github/workflows/docker.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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..00b2a9e --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,23 @@ +name: Publish to Registry +on: + release: + types: [published] + push: + branches: + - master +jobs: + update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Get release version + id: get_version + run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10}) + - name: Publish to Registry + uses: elgohr/Publish-Docker-Github-Action@master + with: + name: 41north/exflo + username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} + password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} + dockerfile: docker/exflo/Dockerfile + tags: "latest,${{ env.RELEASE_VERSION }}"