1
0
mirror of synced 2026-04-01 15:23:45 +00:00
Files
amcrest2mqtt/.github/workflows/publish.yml
2021-02-13 15:18:21 +00:00

25 lines
616 B
YAML

name: Publish
on:
push:
branches:
- main
jobs:
docker-publish:
name: Publish to Docker Hub
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: dchesterton/amcrest2mqtt:latest