From 22208ed759697fc942f7b7d92ed6bd45d4cbb5ff Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Thu, 13 May 2021 13:44:48 +0200 Subject: [PATCH] github actions added for docker publish --- .github/workflows/docker-publish.yml | 29 ++++++++++++++++++++++++++++ README.md | 16 +++++++-------- 2 files changed, 36 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/docker-publish.yml diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml new file mode 100644 index 0000000..796697c --- /dev/null +++ b/.github/workflows/docker-publish.yml @@ -0,0 +1,29 @@ +name: Publish Docker Image + +on: + push: + branches: + - master + schedule: + - cron: '0 7 * * SUN' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + id: docker_build + uses: docker/build-push-action@v2 + with: + push: true + tags: rogersik/autopostgresqlbackup:latest + - + name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} \ No newline at end of file diff --git a/README.md b/README.md index cf596f8..46b8093 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,6 @@ # Docker AutoPostgreSQLBackup - > AutoPostgreSQLBackup in a docker container -[![](https://dockerbuildbadges.quelltext.eu/status.svg?organization=ppadial&repository=autopostgresqlbackup)](https://hub.docker.com/r/ppadial/autopostgresqlbackup/builds/) - This docker container uses the autopostgresqlbackup package from ubuntu repos with a minimal modification to make it able to use variables from environment variables, making the configuration through docker model possible. The original source code with modifications is in this repo, also the license GPLv2 has been respected and this repo is under GPLv2. This container follow the [dockerfile good practices](https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/). @@ -11,7 +8,7 @@ This container follow the [dockerfile good practices](https://docs.docker.com/en ## Installation ```bash -docker pull ppadial/autopostgresqlbackup +docker pull rogersik/autopostgresqlbackup ``` ## Configuration @@ -57,7 +54,7 @@ and read the options [autopostgresqlbackup](autopostgresqlbackup.conf) ## Usage ```bash -docker run --name autopostgresqlbackup -v /my/backup/dir:/backups -e DBHOST=mypgbackup -e PASSWORD=mycomplexpassword -v /etc/localtime:/etc/localtime:ro ppadial/autopostgresqlbackup:latest +docker run --name autopostgresqlbackup -v /my/backup/dir:/backups -e DBHOST=mypgbackup -e PASSWORD=mycomplexpassword -v /etc/localtime:/etc/localtime:ro rogersik/autopostgresqlbackup:latest ``` ### With docker-compose @@ -67,7 +64,7 @@ version: '3.5' services: autopgbackup: - image: ppadial/autopostgresqlbackup:latest + image: rogersik/autopostgresqlbackup:latest container_name: autopgbackup environment: - DBHOST = mypgserver @@ -93,11 +90,12 @@ Distributed under the GPLv2 license. See [LICENSE](LICENSE) for more information ## Contributing -1. Fork it () +1. Fork it () 2. Create your feature branch (`git checkout -b feature/fooBar`) 3. Commit your changes (`git commit -am 'Add some fooBar'`) 4. Push to the branch (`git push origin feature/fooBar`) 5. Create a new Pull Request - -[wiki]: https://github.com/ppadial/docker-autopostgresqlbackup/wiki +## Changes since fork from charleszlu/docker-autopostgresqlbackup +* continous builds (with github actions) for current docker images +* removed+replaced broken links in README.md \ No newline at end of file