diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6031367..b811ce4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -21,4 +21,23 @@ jobs: goarch: ${{ matrix.goarch }} project_path: "./" binary_name: "go-report-builder" - extra_files: LICENSE README.md \ No newline at end of file + extra_files: LICENSE README.md + docker: + name: Publish to DockerHub + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.2 + name: Check out code + + - uses: satackey/action-docker-layer-caching@v0.0.8 + continue-on-error: true + + - uses: mr-smithers-excellent/docker-build-push@v4 + name: Build & push Docker image + with: + image: adikastyle/go-report-builder + tag: latest + registry: docker.io + dockerfile: Dockerfile + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} \ No newline at end of file