diff --git a/.github/workflows/publish-to-dockerhub.yml b/.github/workflows/publish-to-dockerhub.yml new file mode 100644 index 000000000..b18972879 --- /dev/null +++ b/.github/workflows/publish-to-dockerhub.yml @@ -0,0 +1,21 @@ +name: Publish DockerHub + +on: + push: + tags: + - '*' + +jobs: + build: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@master + - name: Publish to DockerHub + if: startsWith(github.event.ref, 'refs/tags/v') + uses: elgohr/Publish-Docker-Github-Action@master + with: + name: blockchainetl/ethereum-etl + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + tags: "latest" + tag_semver: true \ No newline at end of file