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