aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-13 09:48:18 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-13 09:48:18 +0200
commit65fe5cb5c88beabf6c045f20738af71c8d0e38ec (patch)
treea87bed5395a4d7a5ad104202be12b6cf0181c841
parentd3bbba263d4bfce087181d3cdb40fe8c89177624 (diff)
downloadfeed2imap-go-65fe5cb5c88beabf6c045f20738af71c8d0e38ec.tar.gz
feed2imap-go-65fe5cb5c88beabf6c045f20738af71c8d0e38ec.tar.bz2
feed2imap-go-65fe5cb5c88beabf6c045f20738af71c8d0e38ec.zip
Publish docker images also at Docker Hub.
Closes #15.
-rw-r--r--.github/workflows/release.yml11
-rw-r--r--.goreleaser.yml2
-rw-r--r--README.md4
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):