From d04dd1622ccd6f73223c2fda6dbcd89c465fbea5 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Mon, 13 Sep 2021 18:14:49 +0200 Subject: [PATCH] =?UTF-8?q?CI:=20build=20&=20publish=20Docker=20image=20?= =?UTF-8?q?=F0=9F=92=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-image.yml | 24 ++++++++++++++++++++++++ readme.md | 1 - 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..283a2d7 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,24 @@ +name: build & publish Docker image +on: + push: + branches: + - 5 +jobs: + build-and-publish: + name: build & publish Docker image + runs-on: ubuntu-latest + steps: + - name: check out the repo + uses: actions/checkout@v2 + - name: log in to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_ACCESS_TOKEN }} + - name: build Docker image & push to Docker Hub + uses: docker/build-push-action@v2 + with: + push: true + tags: | + derhuerst/db-rest:5 + derhuerst/db-rest:latest diff --git a/readme.md b/readme.md index 2c7037d..bc13998 100644 --- a/readme.md +++ b/readme.md @@ -7,7 +7,6 @@ ![db-rest architecture diagram](architecture.svg) [![API status](https://badgen.net/uptime-robot/status/m784879516-8a977fa91b975fc3884a9857)](https://stats.uptimerobot.com/57wNLs39M/784879516) -[![Docker build status](https://img.shields.io/docker/build/derhuerst/db-rest.svg)](https://hub.docker.com/r/derhuerst/db-rest/) [![dependency status](https://img.shields.io/david/derhuerst/db-rest.svg)](https://david-dm.org/derhuerst/db-rest) ![ISC-licensed](https://img.shields.io/github/license/derhuerst/db-rest.svg) [![support me via GitHub Sponsors](https://img.shields.io/badge/support%20me-donate-fa7664.svg)](https://github.com/sponsors/derhuerst)