Add back the github workflows

This commit is contained in:
2021-07-31 23:13:17 -04:00
parent b22eb01ca9
commit 8be6bd9527

43
.github/workflows/docker-image.yml vendored Normal file
View File

@@ -0,0 +1,43 @@
name: Docker Build
on:
push:
branches:
- 'master'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: tedkulp/vidgrab:latest
cache-from: type=registry,ref=tedkulp/vidgrab:latest
cache-to: type=inline
-
name: git checkout
uses: actions/checkout@v2
-
name: push README to Dockerhub
uses: christian-korneck/update-container-description-action@v1
env:
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKER_PASS: ${{ secrets.DOCKERHUB_PASSWORD }}
with:
destination_container_repo: tedkulp/vidgrab
provider: dockerhub
short_description: 'Simple web interface to download videos with youtube-dl and store them on your server'
readme_file: 'README.md'