Skip to content

Commit

Permalink
feat: add GitHub Actions workflow for Docker build and push to GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaddington committed Dec 13, 2024
1 parent 9df7c10 commit 697bb45
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy-jm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Docker Build and Push to GHCR

on:
workflow_dispatch:

push:
branches:
- jm-production

jobs:
deploy-gh-runner-aci:
runs-on: ubuntu-latest
steps:
# checkout the repo
- name: 'Checkout GitHub Action'
uses: actions/checkout@v4
ref: jm-production

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to GitHub Docker Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ghcr.io/jmaddington/LibreChat:latest

- name: Log out from Docker Hub
run: docker logout ghcr.io

0 comments on commit 697bb45

Please sign in to comment.