From 65fe5cb5c88beabf6c045f20738af71c8d0e38ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Wed, 13 May 2020 09:48:18 +0200 Subject: Publish docker images also at Docker Hub. Closes #15. --- .github/workflows/release.yml | 11 +++++++++-- .goreleaser.yml | 2 ++ README.md | 4 ++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 19b0b6d..358abc0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,14 +31,21 @@ jobs: run: | echo '${{ steps.changelog_reader.outputs.log_entry }}' >> $HOME/changelog_entry echo "::set-env name=clfile::${HOME}/changelog_entry" - + - name: Docker Login uses: azure/docker-login@v1 with: login-server: 'docker.pkg.github.com' - username: ${{ github.repository_owner }} + username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Docker Login + uses: azure/docker-login@v1 + with: + login-server: 'index.docker.io' + username: necorodm + password: ${{ secrets.DOCKER_TOKEN }} + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v1 with: diff --git a/.goreleaser.yml b/.goreleaser.yml index 98a9a9f..35c38cb 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -40,6 +40,8 @@ dockers: binaries: - feed2imap-go image_templates: + - "necorodm/feed2imap-go/feed2imap-go:latest" + - "necorodm/feed2imap-go/feed2imap-go:{{ .Version }}" - "docker.pkg.github.com/necoro/feed2imap-go/feed2imap-go:latest" - "docker.pkg.github.com/necoro/feed2imap-go/feed2imap-go:{{ .Version }}" diff --git a/README.md b/README.md index 22a8aa7..4ba089d 100644 --- a/README.md +++ b/README.md @@ -92,12 +92,12 @@ and b) the update process is not clear, especially regarding the dependencies. ### Run in docker -Most times, putting feed2imap-go somewhere and adding a cron job does everything you need. For the times where it isn't, we provide docker containers for your convenience at [Github Packages](https://github.com/Necoro/feed2imap-go/packages). +Most times, putting feed2imap-go somewhere and adding a cron job does everything you need. For the times where it isn't, we provide docker containers for your convenience at [Github Packages](https://github.com/Necoro/feed2imap-go/packages) and at [Docker Hub](https://hub.docker.com/r/necorodm/feed2imap-go). The container is configured to expect both config file and cache under `/app/data/`, thus needs it mounted there. When both are stored in `~/feed`, you can do: ````bash -docker run -v ~/feed:/app/data docker.pkg.github.com/necoro/feed2imap-go/feed2imap-go:latest +docker run -v ~/feed:/app/data necorodm/feed2imap-go:latest ```` Alternatively, build the docker image yourself (requires the `feed2imap-go` binary at toplevel): -- cgit v1.2.3