Skip to content

smaller logo in readme #2

smaller logo in readme

smaller logo in readme #2

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main # Build on pushes to the main branch
workflow_dispatch: # Allow manual triggering of the workflow
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Log in to GitHub Container Registry
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Step 3: Build the Docker image
- name: Build the Docker image
run: |
docker build -t ghcr.io/${{ github.repository_owner }}/patchu:latest .
# Step 4: Push the Docker image to GHCR
- name: Push the Docker image
run: |
docker push ghcr.io/${{ github.repository_owner }}/patchu:latest