Skip to content

Commit 393c8cd

Browse files
committed
add ci
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
1 parent 6576107 commit 393c8cd

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

.github/workflows/ci.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI/CD Pipeline
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build-and-push:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
packages: write
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v4
16+
17+
- name: Log in to the Container registry
18+
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
19+
with:
20+
registry: ghcr.io
21+
username: ${{ github.actor }}
22+
password: ${{ secrets.GH_CR_PAT }}
23+
24+
- name: Extract metadata (tags, labels) for Docker
25+
id: meta
26+
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
27+
with:
28+
images: |
29+
ghcr.io/${{ github.repository }}
30+
31+
- name: Build and push Docker image
32+
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
33+
with:
34+
context: .
35+
push: true
36+
tags: ${{ steps.meta.outputs.tags }}
37+
labels: ${{ steps.meta.outputs.labels }}

pyproject.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ authors = ["David Wolf <[email protected]>"]
66
readme = "README.md"
77

88
[tool.poetry.dependencies]
9-
python = "3.11.6"
10-
gradio = "^4.4.1"
11-
setuptools = "^68.2.2"
9+
python = "^3.11.6"
1210
phonemizer = "^3.2.1"
1311
nltk = "^3.8.1"
1412
pydub = "^0.25.1"

0 commit comments

Comments
 (0)