update the test_gitea

This commit is contained in:
DatTT127
2026-07-18 18:09:53 +07:00
parent 57a8bac1be
commit 1e9a564ad8
53 changed files with 15 additions and 33028 deletions

View File

@@ -37,6 +37,8 @@ env:
jobs:
build-and-push:
runs-on: ubuntu-latest
container:
image: gitea-modal-runner:latest
timeout-minutes: 30
steps:
- name: Checkout repository

View File

@@ -6,9 +6,9 @@
#
# Required Gitea Repository Secrets:
# MODAL_TOKEN - Modal API token (from modal.com/settings)
# AWS_ACCESS_KEY_ID - For ECR push
# AWS_SECRET_ACCESS_KEY
# AWS_REGION - e.g., us-east-1
#
# Required Modal Secrets (configured in Modal dashboard, NOT Gitea):
# aws-secrets - AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION
#
# Required Gitea Repository Variables:
# ECR_PUBLIC_REGISTRY_ALIAS - Your public.ecr.aws alias (e.g., vkist-project)
@@ -61,35 +61,15 @@ env:
jobs:
build-via-modal:
name: Build & Push via Modal
runs-on: ubuntu-latest
runs-on: [self-hosted, linux, amd64]
container:
image: gitea-modal-runner:latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Modal CLI
run: pip install modal
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION || 'us-east-1' }}
- name: Login to Amazon ECR Public
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public
mask-password: 'true'
- name: Determine image tag
id: tag
run: |
@@ -114,11 +94,6 @@ jobs:
--platform linux/amd64 \
--push
- name: Print image URI
run: |
echo "Successfully pushed: ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ steps.tag.outputs.tag }}"
echo "image=${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ steps.tag.outputs.tag }}" >> $GITHUB_OUTPUT
# Optional: Trigger dependent deployments
# trigger-triton:
# needs: build-via-modal

View File

@@ -17,7 +17,7 @@ permissions:
env:
FRONTEND_DIR: workspace/sprint_1_2/CODEBASE/frontend/implementation
ECR_REGISTRY: public.ecr.aws
ECR_REPOSITORY: ${{ vars.ECR_PUBLIC_REGISTRY_ALIAS }}/lumina-frontend
ECR_REPOSITORY: ${{ vars.ECR_PUBLIC_REGISTRY_ALIAS }}/msk_lumina_frontend
jobs:
build-and-push: