From 8be6bd9527b3b2d7823b77f1f47e5ae9c6f84fef Mon Sep 17 00:00:00 2001 From: Ted Kulp Date: Sat, 31 Jul 2021 23:13:17 -0400 Subject: [PATCH] Add back the github workflows --- .github/workflows/docker-image.yml | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..9ccad99 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -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' \ No newline at end of file