Skip to content

Commit

Permalink
ci: update workflows [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
n0bodysec committed Oct 3, 2023
1 parent e90c088 commit e5ff345
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 49 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/copy.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/publish-stremio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.

name: Publish Stremio Docker Image

on:
workflow_dispatch:
push:
branches: main

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, '(stremio)') && ! contains(github.event.head_commit.message, 'skip-ci')"

steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

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

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

- name: Build and push
uses: docker/build-push-action@v5
with:
context: stremio/
platforms: linux/amd64,linux/arm64
push: true
tags: n0bodysec/stremio:latest
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit e5ff345

Please sign in to comment.