Skip to content

CI

CI #13

Workflow file for this run

name: CI
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Tag Release
id: tag_release
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
push: true
tags: |
0x4d4d/tvheadend-exporter:latest
0x4d4d/tvheadend-exporter:${{ steps.tag_release.outputs.tag }}
ghcr.io/0x4d4d/tvheadend-exporter:latest
ghcr.io/0x4d4d/tvheadend-exporter:${{ steps.tag_release.outputs.tag }}