Add GitHub Actions workflow to build and push Docker image to GHCR

This commit is contained in:
Sisyphus 2026-04-24 19:25:11 -03:00
parent fca2f0bd8e
commit 31bbaa7360

30
.github/workflows/docker.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Build and Push Docker Image
on:
push:
branches: [main]
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/domfelipe/hermes-agent-custom:latest