Merge pull request #190 from nim65s/pre-commit-ci-update-config #211
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish on Docker Hub | |
on: | |
push: | |
branches: | |
- 'master' | |
tags: | |
- 'v*' | |
jobs: | |
docker-hub: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: docker/metadata-action@v5 | |
id: meta | |
with: | |
images: nim65s/matrix-webhook | |
- uses: docker/setup-qemu-action@v3 | |
name: Set up QEMU | |
- uses: docker/setup-buildx-action@v3 | |
name: Set up Docker Buildx | |
- uses: docker/login-action@v3 | |
with: | |
username: nim65s | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- uses: docker/build-push-action@v6 | |
with: | |
context: . | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
platforms: linux/amd64,linux/arm64 |