CI: build & publish Docker image 💚
This commit is contained in:
parent
3fe7151017
commit
d04dd1622c
2 changed files with 24 additions and 1 deletions
24
.github/workflows/docker-image.yml
vendored
Normal file
24
.github/workflows/docker-image.yml
vendored
Normal file
|
@ -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
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue