home-dashboard/.github/workflows/release.yml
Carlo Mandelli 76b0a81b07 first commit
2021-08-08 09:45:36 +02:00

22 lines
596 B
YAML

name: Release
on:
release:
types: [created]
jobs:
docker:
name: Push image to DockerHub
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build image
uses: docker/build-push-action@v2
with:
push: true
tags: camandel/home-dashboard:${{ github.event.release.tag_name}}, camandel/home-dashboard:latest