From 499c3b51187224199caefc4cb42092a73ce4c048 Mon Sep 17 00:00:00 2001 From: tkchafin Date: Tue, 30 Jan 2024 22:27:58 +0000 Subject: [PATCH] docker-update actions workflow --- .github/workflows/docker-update.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/docker-update.yml diff --git a/.github/workflows/docker-update.yml b/.github/workflows/docker-update.yml new file mode 100644 index 0000000..e0bdf2a --- /dev/null +++ b/.github/workflows/docker-update.yml @@ -0,0 +1,27 @@ +name: Update Docker + +on: + release: + types: [published] + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Check Out Repo + uses: actions/checkout@v2 + + - name: Log in to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and Push Docker Image + uses: docker/build-push-action@v2 + with: + context: . + file: ./docker/Dockerfile + push: true + tags: tkchafin/autostreamtree:latest,tkchafin/autostreamtree:${{ github.event.release.tag_name }} +