From f2591496ab703bd93fea8a7b287337f1682e18f8 Mon Sep 17 00:00:00 2001 From: hangpersonal Date: Sun, 19 Oct 2025 10:03:24 -0700 Subject: [PATCH] Add .gitea/workflows/*.yaml --- .gitea/workflows/010_ci_docker_image.yaml | 20 ++++++++++---------- .gitea/workflows/docker-build.yml | 1 - 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/010_ci_docker_image.yaml b/.gitea/workflows/010_ci_docker_image.yaml index 6a92cee..bd0c516 100644 --- a/.gitea/workflows/010_ci_docker_image.yaml +++ b/.gitea/workflows/010_ci_docker_image.yaml @@ -21,14 +21,14 @@ on: jobs: lint: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Checkout source code uses: actions/checkout@v4 - - name: Install Python 3.10.12 + - name: Install Python 3.10 uses: actions/setup-python@v4 with: - python-version: '3.10.12' + python-version: '3.10' - name: Install tox run: pip install tox - name: Run lint @@ -37,14 +37,14 @@ jobs: tox -e lint unit-test: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Checkout source code uses: actions/checkout@v4 - - name: Install Python 3.10.12 + - name: Install Python 3.10 uses: actions/setup-python@v4 with: - python-version: '3.10.12' + python-version: '3.10' - name: Install tox run: pip install tox - name: Run unit tests @@ -53,7 +53,7 @@ jobs: tox -e unit build-image: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest needs: [lint, unit-test] # Specify that build-image depends on lint and unit-test steps: - name: Checkout source code @@ -74,7 +74,7 @@ jobs: retention-days: 1 integration-tests: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest needs: [build-image] steps: - name: Download artifact @@ -93,7 +93,7 @@ jobs: docker container stop ${{ inputs.container-name }} vulnerability-scan: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest needs: [build-image] steps: - name: Download artifact @@ -124,7 +124,7 @@ jobs: retention-days: 1 publish-image: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest needs: [integration-tests, vulnerability-scan] steps: - name: Download artifact diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml index 01888cc..e384d76 100644 --- a/.gitea/workflows/docker-build.yml +++ b/.gitea/workflows/docker-build.yml @@ -53,4 +53,3 @@ jobs: echo "Remove image: " docker rmi gitea.cuihang1201.synology.me/hangpersonal/docker-build:latest docker image ls -a -