Skip to content

Commit

Permalink
Create pi-docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Sep 12, 2021
1 parent f60d9fd commit 8aa6c95
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/pi-docker.yml
@@ -0,0 +1,46 @@
name: Publish Docker image

on:
workflow_dispatch:
release:
types: [published]
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '30 8 * * *'

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: docker/metadata-action@v3
# with:
# images: koush/scrypted

- name: Build and push Docker image
uses: docker/build-push-action@v2

with:
context: .
platforms: linux/arm/v7
push: true
tags: koush/scrypted:latest
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 8aa6c95

Please sign in to comment.