This commit is contained in:
2026-09-24 23:30:13 +03:00
parent 03dbf9929b
commit a56a9568f6
2 changed files with 4 additions and 2 deletions

View File

@@ -16,7 +16,6 @@ jobs:
timeout-minutes: 45 timeout-minutes: 45
env: env:
REGISTRY_HOST: ${{ vars.REGISTRY_HOST }} REGISTRY_HOST: ${{ vars.REGISTRY_HOST }}
REGISTRY_USERNAME: ${{ vars.REGISTRY_USERNAME }}
DEPLOY_HOST: ${{ vars.DEPLOY_HOST }} DEPLOY_HOST: ${{ vars.DEPLOY_HOST }}
DEPLOY_PORT: ${{ vars.DEPLOY_PORT }} DEPLOY_PORT: ${{ vars.DEPLOY_PORT }}
DEPLOY_USER: ${{ vars.DEPLOY_USER }} DEPLOY_USER: ${{ vars.DEPLOY_USER }}
@@ -32,6 +31,7 @@ jobs:
- name: Validate deployment configuration - name: Validate deployment configuration
shell: bash shell: bash
env: env:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }} DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
DEPLOY_SSH_KNOWN_HOSTS: ${{ secrets.DEPLOY_SSH_KNOWN_HOSTS }} DEPLOY_SSH_KNOWN_HOSTS: ${{ secrets.DEPLOY_SSH_KNOWN_HOSTS }}
@@ -70,6 +70,7 @@ jobs:
- name: Login to container registry - name: Login to container registry
shell: bash shell: bash
env: env:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
run: | run: |
set -Eeuo pipefail set -Eeuo pipefail
@@ -104,6 +105,7 @@ jobs:
- name: Deploy on production server - name: Deploy on production server
shell: bash shell: bash
env: env:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }} DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
DEPLOY_SSH_KNOWN_HOSTS: ${{ secrets.DEPLOY_SSH_KNOWN_HOSTS }} DEPLOY_SSH_KNOWN_HOSTS: ${{ secrets.DEPLOY_SSH_KNOWN_HOSTS }}

View File

@@ -16,7 +16,7 @@ Keep these existing instance-level values:
| Kind | Name | Purpose | | Kind | Name | Purpose |
| --- | --- | --- | | --- | --- | --- |
| Variable | `REGISTRY_HOST` | Registry hostname with optional port, without `https://` | | Variable | `REGISTRY_HOST` | Registry hostname with optional port, without `https://` |
| Variable | `REGISTRY_USERNAME` | Registry login/user name | | Secret | `REGISTRY_USERNAME` | Registry login/user name |
| Secret | `REGISTRY_PASSWORD` | Gitea PAT with `write:package` access (which includes read) | | Secret | `REGISTRY_PASSWORD` | Gitea PAT with `write:package` access (which includes read) |
| Secret | `RELEASE_TOKEN` | Used by the separate agent release workflow | | Secret | `RELEASE_TOKEN` | Used by the separate agent release workflow |