Create github-container-registry.yml

This commit is contained in:
Mark Nefedov
2024-12-25 01:27:27 +03:00
committed by GitHub
parent bf5efd7bcb
commit 7dac79721a

View File

@@ -0,0 +1,29 @@
name: Deploy Images to GHCR
on:
push:
branches:
- main
workflow_dispatch:
jobs:
push-store-image:
runs-on: ubuntu-latest
defaults:
run:
working-directory: './Store'
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/marknefedov/ollama-openrouter-proxy:latest
docker push ghcr.io/marknefedov/ollama-openrouter-proxy:latest