Move insecure registry configuration from Docker login and build steps to Buildx setup in backend deployment workflow
Some checks failed
Build and Deploy Frontend Learner / Build Frontend Learner Docker Image (push) Failing after 8s
Build and Deploy Frontend Learner / Deploy Frontend Learner to Server (push) Has been skipped

This commit is contained in:
JakkrapartXD 2026-02-09 17:32:04 +07:00
parent 879ab39998
commit 4b016b07cd

View file

@ -19,6 +19,11 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
config-inline: |
[registry."${{ vars.DOCKER_REGISTRY }}"]
http = true
insecure = true
- name: Login to Docker Registry
uses: docker/login-action@v3
@ -26,7 +31,6 @@ jobs:
registry: ${{ vars.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
insecure: true
- name: Extract metadata
id: meta
@ -48,7 +52,6 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
insecure: true
deploy:
name: Deploy Backend to Server
@ -63,4 +66,4 @@ jobs:
port: ${{ vars.SSH_DEPLOY_PORT }}
username: ${{ secrets.SSH_DEPLOY_USER }}
password: ${{ secrets.SSH_DEPLOY_PASSWORD }}
script: eval "${{ secrets.SSH_DEPLOY_BACKEND_CMD }}"
script: eval "${{ secrets.SSH_DEPLOY_BACKEND_CMD }}"