This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
Update const.py #25
Workflow file for this run
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 Docker Image | |
on: | |
pull_request: | |
branches: [ "master" ] | |
types: | |
- closed | |
jobs: | |
publish-docker-image: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build the Docker image | |
run: | | |
docker build . --tag ghcr.io/${{secrets.DOCKER_USER}}/domoticz-google-assistant:latest | |
docker push ghcr.io/${{secrets.DOCKER_USER}}/domoticz-google-assistant:latest |