Move insecure registry configuration from Docker login and build steps to Buildx setup in backend deployment workflow
This commit is contained in:
parent
879ab39998
commit
4b016b07cd
1 changed files with 6 additions and 3 deletions
|
|
@ -19,6 +19,11 @@ jobs:
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
config-inline: |
|
||||||
|
[registry."${{ vars.DOCKER_REGISTRY }}"]
|
||||||
|
http = true
|
||||||
|
insecure = true
|
||||||
|
|
||||||
- name: Login to Docker Registry
|
- name: Login to Docker Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|
@ -26,7 +31,6 @@ jobs:
|
||||||
registry: ${{ vars.DOCKER_REGISTRY }}
|
registry: ${{ vars.DOCKER_REGISTRY }}
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
insecure: true
|
|
||||||
|
|
||||||
- name: Extract metadata
|
- name: Extract metadata
|
||||||
id: meta
|
id: meta
|
||||||
|
|
@ -48,7 +52,6 @@ jobs:
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
insecure: true
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy Backend to Server
|
name: Deploy Backend to Server
|
||||||
|
|
@ -63,4 +66,4 @@ jobs:
|
||||||
port: ${{ vars.SSH_DEPLOY_PORT }}
|
port: ${{ vars.SSH_DEPLOY_PORT }}
|
||||||
username: ${{ secrets.SSH_DEPLOY_USER }}
|
username: ${{ secrets.SSH_DEPLOY_USER }}
|
||||||
password: ${{ secrets.SSH_DEPLOY_PASSWORD }}
|
password: ${{ secrets.SSH_DEPLOY_PASSWORD }}
|
||||||
script: eval "${{ secrets.SSH_DEPLOY_BACKEND_CMD }}"
|
script: eval "${{ secrets.SSH_DEPLOY_BACKEND_CMD }}"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue