Spaces:
Running
Running
Publish aristotle to Paion Data HF and DockerHub (#1)
Browse files- .github/workflows/ci-cd.yaml +10 -10
.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 aristotle -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:
|
@@ -106,25 +106,25 @@ jobs:
|
|
106 |
resource: http://localhost:7860/?view=api
|
107 |
timeout: 60000
|
108 |
- name: Login to DockerHub
|
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'
|
116 |
uses: docker/build-push-action@v3
|
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/aristotle .
|
97 |
- name: Startup a Container
|
98 |
+
run: docker run -d --name aristotle -p 7860:7860 -e SERVER_NAME=0.0.0.0 paiondatahub/aristotle
|
99 |
- name: Wait for container to be up and running
|
100 |
uses: iFaxity/wait-on-action@v1
|
101 |
with:
|
|
|
106 |
resource: http://localhost:7860/?view=api
|
107 |
timeout: 60000
|
108 |
- name: Login to DockerHub
|
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'
|
116 |
uses: docker/build-push-action@v3
|
117 |
with:
|
118 |
context: .
|
119 |
push: true
|
120 |
+
tags: paiondatahub/aristotle: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/aristotle
|
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/aristotle master:main -f
|
141 |
env:
|
142 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|