Skip to content

ci: failed to deploy to the test environment #53

Description

@AEnjoy

Description

.github/workflows/quality.yml
At Prepare and send deployment config, the environment is unable to obtain the secret, resulting in command failure

github action output:

Run set -e
  set -e
  BRANCH_NAME=dependabot/go_modules/golang.org/x/crypto-0.43.0
  
  echo "Setup SSH"
  mkdir -p ~/.ssh
  printf '%s\n' "" > ~/.ssh/id_rsa
  chmod 600 ~/.ssh/id_rsa
  ssh-keyscan -H "" >> ~/.ssh/known_hosts
  
  echo "Modify config and pipe to remote script"
  sed -e "s|  image: .*|  image: ghcr.io/togetherforstudy/jxust-yqlx-server:backend_48_1b2ce4|" \
      -e "/backend:/,/frontend:/s|  branch: main|  branch: $BRANCH_NAME|" \
      ci-test-opt.yml.example | ssh -o IdentitiesOnly=yes -i ~/.ssh/id_rsa root@ 'python3 /opt/deploy/gateway.py test-deploy'
  shell: /usr/bin/bash -e {0}
  env:
    IMAGE: ghcr.io/togetherforstudy/jxust-yqlx-server:backend_48_1b2ce4
Setup SSH

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginvalidThis doesn't seem right

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions