mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-01-16 08:05:57 +00:00
setup action to build/publish on docker hub
This commit is contained in:
parent
fbcae98390
commit
dcc73dfc81
29
.github/workflows/publish.yml
vendored
Normal file
29
.github/workflows/publish.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Publish Docker image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
- 'devel'
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker-hub:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: docker/metadata-action@v3
|
||||||
|
id: meta
|
||||||
|
with:
|
||||||
|
images: nim65s/matrix-webhook
|
||||||
|
- uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: nim65s
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
[](https://github.com/nim65s/matrix-webhook/actions/workflows/test.yml)
|
[](https://github.com/nim65s/matrix-webhook/actions/workflows/test.yml)
|
||||||
[](https://github.com/nim65s/matrix-webhook/actions/workflows/lint.yml)
|
[](https://github.com/nim65s/matrix-webhook/actions/workflows/lint.yml)
|
||||||
|
[](https://github.com/nim65s/matrix-webhook/actions/workflows/publish.yml)
|
||||||
[](https://github.com/psf/black)
|
[](https://github.com/psf/black)
|
||||||
[](https://codecov.io/gh/nim65s/matrix-webhook)
|
[](https://codecov.io/gh/nim65s/matrix-webhook)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user