Skip to content

feat: add GitHub Actions workflow for Docker build and push to GHCR #1

feat: add GitHub Actions workflow for Docker build and push to GHCR

feat: add GitHub Actions workflow for Docker build and push to GHCR #1

Workflow file for this run

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

Check failure on line 17 in .github/workflows/deploy-jm.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-jm.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
- 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