mirror of
https://github.com/domfelipe/hermes-agent-custom.git
synced 2026-08-07 04:16:44 +00:00
Add GitHub Actions workflow to build and push Docker image to GHCR
This commit is contained in:
parent
fca2f0bd8e
commit
31bbaa7360
1 changed files with 30 additions and 0 deletions
30
.github/workflows/docker.yml
vendored
Normal file
30
.github/workflows/docker.yml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue