Add support for human detection on AD410 and add versioning
parent
0407bca341
commit
2e3e3afc4d
@ -1,30 +1,39 @@
|
|||||||
name: Publish
|
name: Publish
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker-publish:
|
docker-publish:
|
||||||
name: Publish to Docker Hub
|
name: Publish to Docker Hub
|
||||||
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Bump version
|
||||||
uses: actions/checkout@v2.3.4
|
uses: remorses/bump-version@js
|
||||||
- name: Set up QEMU
|
id: version
|
||||||
uses: docker/setup-qemu-action@v1.2.0
|
with:
|
||||||
- name: Set up Docker Buildx
|
version_file: ./VERSION
|
||||||
uses: docker/setup-buildx-action@v1.3.0
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Login to DockerHub
|
- name: Checkout code
|
||||||
uses: docker/login-action@v1.9.0
|
uses: actions/checkout@v2.3.4
|
||||||
with:
|
- name: Set up QEMU
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
uses: docker/setup-qemu-action@v1.2.0
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
- name: Set up Docker Buildx
|
||||||
- name: Build and push
|
uses: docker/setup-buildx-action@v1.3.0
|
||||||
uses: docker/build-push-action@v2.5.0
|
- name: Login to DockerHub
|
||||||
with:
|
uses: docker/login-action@v1.9.0
|
||||||
push: true
|
with:
|
||||||
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
tags: dchesterton/amcrest2mqtt:latest
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v2.5.0
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
|
||||||
|
tags: |
|
||||||
|
dchesterton/amcrest2mqtt:latest
|
||||||
|
dchesterton/amcrest2mqtt:${{ steps.version.outputs.version }}
|
||||||
|
labels: "version=${{ steps.version.outputs.version }}"
|
||||||
|
Loading…
Reference in New Issue