Spaces:
Running
Running
Publish aristotle to Paion Data HF and DockerHub (#1)
Browse files
.github/workflows/ci-cd.yaml
CHANGED
@@ -93,9 +93,9 @@ jobs:
|
|
93 |
with:
|
94 |
python-version: ${{ env.PYTHON_VERSION }}
|
95 |
- name: Image Build Test
|
96 |
-
run: docker build -t
|
97 |
- name: Startup a Container
|
98 |
-
run: docker run -d --name pantex -p 7860:7860 -e SERVER_NAME=0.0.0.0
|
99 |
- name: Wait for container to be up and running
|
100 |
uses: iFaxity/wait-on-action@v1
|
101 |
with:
|
@@ -109,7 +109,7 @@ jobs:
|
|
109 |
if: github.ref == 'refs/heads/master'
|
110 |
uses: docker/login-action@v2
|
111 |
with:
|
112 |
-
username:
|
113 |
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
114 |
- name: Push image to DockerHub
|
115 |
if: github.ref == 'refs/heads/master'
|
@@ -117,14 +117,14 @@ jobs:
|
|
117 |
with:
|
118 |
context: .
|
119 |
push: true
|
120 |
-
tags:
|
121 |
- name: Push image Description
|
122 |
if: github.ref == 'refs/heads/master'
|
123 |
uses: peter-evans/dockerhub-description@v4
|
124 |
with:
|
125 |
-
username:
|
126 |
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
127 |
-
repository:
|
128 |
readme-filepath: README.md
|
129 |
|
130 |
sync-to-huggingface-space:
|
@@ -137,6 +137,6 @@ jobs:
|
|
137 |
fetch-depth: 0
|
138 |
lfs: true
|
139 |
- name: Push to hub
|
140 |
-
run: git push https://
|
141 |
env:
|
142 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
|
93 |
with:
|
94 |
python-version: ${{ env.PYTHON_VERSION }}
|
95 |
- name: Image Build Test
|
96 |
+
run: docker build -t paiondatahub/pantex .
|
97 |
- name: Startup a Container
|
98 |
+
run: docker run -d --name pantex -p 7860:7860 -e SERVER_NAME=0.0.0.0 paiondatahub/pantex
|
99 |
- name: Wait for container to be up and running
|
100 |
uses: iFaxity/wait-on-action@v1
|
101 |
with:
|
|
|
109 |
if: github.ref == 'refs/heads/master'
|
110 |
uses: docker/login-action@v2
|
111 |
with:
|
112 |
+
username: paiondatahub
|
113 |
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
114 |
- name: Push image to DockerHub
|
115 |
if: github.ref == 'refs/heads/master'
|
|
|
117 |
with:
|
118 |
context: .
|
119 |
push: true
|
120 |
+
tags: paiondatahub/pantex:latest
|
121 |
- name: Push image Description
|
122 |
if: github.ref == 'refs/heads/master'
|
123 |
uses: peter-evans/dockerhub-description@v4
|
124 |
with:
|
125 |
+
username: paiondatahub
|
126 |
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
127 |
+
repository: paiondatahub/pantex
|
128 |
readme-filepath: README.md
|
129 |
|
130 |
sync-to-huggingface-space:
|
|
|
137 |
fetch-depth: 0
|
138 |
lfs: true
|
139 |
- name: Push to hub
|
140 |
+
run: git push https://paion-data:[email protected]/spaces/paion-data/pantex master:main -f
|
141 |
env:
|
142 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|