Skip to content

Commit

Permalink
Add GitHub Actions workflow for deploying Docker image to GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkosm committed Dec 23, 2024
1 parent bd23f86 commit 0e87373
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy Image to GHCR

env:
DOTNET_VERSION: '6.0.x'

on:
push:
branches:
- main
workflow_dispatch:

jobs:
push-api:
runs-on: ubuntu-latest
defaults:
run:
working-directory: './api'
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main

- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

- name: 'Build Inventory Image'
run: |
docker build . --tag ghcr.io/mendableai/mineru-api:latest
docker push ghcr.io/mendableai/mineru-api:latest

0 comments on commit 0e87373

Please sign in to comment.