From 31bbaa7360827ff72ecad1be61893ed637b542bc Mon Sep 17 00:00:00 2001 From: Sisyphus Date: Fri, 24 Apr 2026 19:25:11 -0300 Subject: [PATCH] Add GitHub Actions workflow to build and push Docker image to GHCR --- .github/workflows/docker.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..8706872 --- /dev/null +++ b/.github/workflows/docker.yml @@ -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