update the the workflow 3

This commit is contained in:
DatTT127
2026-07-18 18:43:31 +07:00
parent 1546389cae
commit bc03eaed5d

View File

@@ -42,22 +42,24 @@ jobs:
- name: Lint backend code - name: Lint backend code
run: | run: |
pwd
ls -la
python -m py_compile backend/cv_inference_server.py python -m py_compile backend/cv_inference_server.py
find backend -name '*.py' -exec python -m py_compile {} + find backend -name '*.py' -exec python -m py_compile {} +
- name: Configure AWS credentials # - name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4 # uses: aws-actions/configure-aws-credentials@v4
with: # with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} # aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} # aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1 # aws-region: us-east-1
- name: Login to Amazon ECR Public # - name: Login to Amazon ECR Public
id: login-ecr # id: login-ecr
uses: aws-actions/amazon-ecr-login@v2 # uses: aws-actions/amazon-ecr-login@v2
with: # with:
registry-type: public # registry-type: public
mask-password: 'true' # mask-password: 'true'
- name: Extract metadata for Docker - name: Extract metadata for Docker
id: meta id: meta