update the test_gitea
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user