Add .gitea/workflows/*.yaml
This commit is contained in:
@@ -78,9 +78,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker load --input /tmp/image.tar
|
docker load --input /tmp/image.tar
|
||||||
docker image ls -a
|
docker image ls -a
|
||||||
docker run --rm -p 4180:80 -d ${{ vars.IMAGE }}:${{ inputs.image-tag }}
|
docker run -p 8143:8143 -d ${{ vars.IMAGE }}:${{ inputs.image-tag }}
|
||||||
sleep 5
|
sleep 10
|
||||||
curl --fail 'http://localhost:4180/'
|
curl --fail 'http://localhost:8143/'
|
||||||
|
|
||||||
publish-image:
|
publish-image:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ COPY requirements.txt /app/requirements.txt
|
|||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 8143
|
||||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8143"]
|
||||||
Reference in New Issue
Block a user