From 31962cd819fba937a5f0dc84ec018573e9b4c4d8 Mon Sep 17 00:00:00 2001 From: David Claeys Date: Tue, 12 Nov 2024 16:06:33 +0100 Subject: [PATCH] change action and corresponding documentation --- .gitea/workflows/action.yml | 6 ++++++ .github/workflows/action.yml | 36 ++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 3 files changed, 44 insertions(+) create mode 100644 .github/workflows/action.yml diff --git a/.gitea/workflows/action.yml b/.gitea/workflows/action.yml index 74364a5..50db94c 100644 --- a/.gitea/workflows/action.yml +++ b/.gitea/workflows/action.yml @@ -29,11 +29,17 @@ jobs: registry: git.claeyscloud.com username: nologin password: ${{ secrets.PACKAGE_TOKEN }} + - name: Login to DockerHub container registry + uses: https://github.com/docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME}} + password: ${{ secrets.DOCKER_HUB_PASSWORD }} - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v5 with: images: | + davidquinonescl/pluto-tv-scraper git.claeyscloud.com/david/pluto-tv-scraper tags: | type=semver,pattern={{raw}} diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml new file mode 100644 index 0000000..a0ffeb7 --- /dev/null +++ b/.github/workflows/action.yml @@ -0,0 +1,36 @@ +name: 'Build docker container' +on: + push: + tags: + - '*' +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: '${{ github.workspace }}' + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Docker login + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: ghcr.io/davidclaeysquinones/pluto-tv-scraper + tags: | + type=semver,pattern={{raw}} + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} diff --git a/README.md b/README.md index e10a06d..e2cb617 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,8 @@ version: '3.3' services: epg: image: git.claeyscloud.com/david/pluto-tv-scraper:latest + #image: ghcr.io/davidclaeysquinones/pluto-tv-scraper:latest + #image: davidquinonescl/pluto-tv-scraper:latest volumes: # add a mapping in order to add a custom config file #- /docker/pluto:/config