Add .gitea/workflows/*.yaml

This commit is contained in:
2025-10-18 01:30:43 -07:00
parent 89d2950754
commit 7c19e34337
2 changed files with 3 additions and 20 deletions

View File

@@ -65,23 +65,6 @@ jobs:
name: image
path: /tmp/image.tar
integration-tests:
runs-on: ubuntu-22.04
needs: [build-image]
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: image
path: /tmp
- name: Load image
run: |
docker load --input /tmp/image.tar
docker image ls -a
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
needs: [integration-tests, vulnerability-scan]

View File

@@ -5,5 +5,5 @@ COPY requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt
COPY . /app
EXPOSE 8143
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8143"]
EXPOSE 80
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]