From 42eb7a6247743356895d4a380157590121f36b8d Mon Sep 17 00:00:00 2001 From: hoangvv Date: Wed, 15 Jan 2025 12:17:17 +0700 Subject: [PATCH] exec @docker --- .gitea/workflows/init_setup_environment.yml | 25 +++++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/init_setup_environment.yml b/.gitea/workflows/init_setup_environment.yml index 5ccfcb996..0c654ae55 100644 --- a/.gitea/workflows/init_setup_environment.yml +++ b/.gitea/workflows/init_setup_environment.yml @@ -6,7 +6,8 @@ on: - main jobs: - initialize: + native: + if: contains(github.event.head_commit.message, '@native') runs-on: ubuntu-latest env: DB_USER: ${{ secrets.DB_USER }} @@ -33,11 +34,6 @@ jobs: - name: Activate virtual environment and install dependencies run: make install - native: - if: contains(github.event.head_commit.message, '@native') - runs-on: ubuntu-latest - needs: [initialize] - steps: - name: Generate Config run: make gen_config @@ -46,11 +42,26 @@ jobs: docker: if: contains(github.event.head_commit.message, '@docker') runs-on: ubuntu-latest - needs: [initialize] strategy: matrix: python-version: [3.12.7] steps: + - name: Checkout Repository + uses: actions/checkout@v4 + with: + ref: ${{ github.ref_name }} + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Create Python virtual environment + run: python -m venv venv + + - name: Activate virtual environment and install dependencies + run: make install + - name: Update Tag run: make update_tag CURR_BRANCH=${{ github.ref_name }}