Skip to content

ci: add GitHub Actions for Docker Hub push and update compose to use … #8

ci: add GitHub Actions for Docker Hub push and update compose to use …

ci: add GitHub Actions for Docker Hub push and update compose to use … #8

name: Build and Push Docker Image
on:
push:
branches: [ "main" ]
workflow_dispatch: # Allows manual triggering from GitHub UI
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: preface8675/cinephilechannelpush:latest
cache-from: type=gha
cache-to: type=gha,mode=max