Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
fix gh action path

fix ci perms

fix ci perms

fix ci perms with repo setting update

ci use gh actions from docs

ci fix

ci fix

ci fix
  • Loading branch information
devidw committed Jan 30, 2024
1 parent 6576107 commit 393c8cd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI/CD Pipeline

on:
push:
branches: [main]

jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GH_CR_PAT }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: |
ghcr.io/${{ github.repository }}
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ authors = ["David Wolf <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "3.11.6"
gradio = "^4.4.1"
setuptools = "^68.2.2"
python = "^3.11.6"
phonemizer = "^3.2.1"
nltk = "^3.8.1"
pydub = "^0.25.1"
Expand Down

0 comments on commit 393c8cd

Please sign in to comment.