2021-08-27 18:05:20 -04:00
|
|
|
name: Publish on Docker Hub
|
2021-07-18 13:55:15 -04:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker-hub:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-08-12 05:35:23 -04:00
|
|
|
- uses: docker/metadata-action@v4
|
2021-07-18 13:55:15 -04:00
|
|
|
id: meta
|
|
|
|
with:
|
|
|
|
images: nim65s/matrix-webhook
|
|
|
|
- uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
username: nim65s
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
2022-08-12 05:35:17 -04:00
|
|
|
- uses: docker/build-push-action@v3
|
2021-07-18 13:55:15 -04:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: true
|
|
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
|
|
labels: ${{ steps.meta.outputs.labels }}
|
2022-08-12 01:05:47 -04:00
|
|
|
platforms: linux/amd64,linux/arm64
|