Skip to content

Added docker publish action #1

Added docker publish action

Added docker publish action #1

Workflow file for this run

name: Publish Docker image
on:
push:
branches:
- feature/docker-auto-publish
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: false
tags: vkaqyu/plejd-mqtt-ha:${{ github.ref }}