redlib/.github/workflows/build-and-push.yml
LucifersCircle ef142d51cc Add workflows
First try on building image with custom theme
2024-11-28 23:18:10 -08:00

30 lines
709 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
workflow_dispatch: # Allows manual trigger
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: luciferscircle/redlib:${{ github.sha }}