9ca48a083e
Publishes linux/arm64 docker images. Relevant documentation: https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md
29 lines
669 B
YAML
29 lines
669 B
YAML
name: Publish on Docker Hub
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
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 }}
|
|
platforms: linux/amd64,linux/arm64
|