Skip to content

Bug. Deploy workflow failed with Flask example project #55

@FranklinBWells

Description

@FranklinBWells

This is a really great project. And it's very generous to provide hosting. Unfortunately it didn't work as well as I liked out of the box:

Run set -x
  set -x
  ./.container-hosting/deploy.sh
  shell: /usr/bin/bash -e {0}
  env:
    RUNNING_WITHIN_CI_PIPELINE: 1
    GIT_USERNAME_OR_ORG: FranklinBWells
    GIT_REPO_NAME: container-diihmcg
    APP_NAME: container-diihmcg
    SSH_CONFIG_FILE: /dev/null
    AMBER_SECRET: ***
    DOKKU_SSH_PRIVATE_KEY: ***
  
+ ./.container-hosting/deploy.sh
+ '[' -f .env ']'
+ echo No .env file present, assuming 'we'\''re' running within pipeline
No .env file present, assuming we're running within pipeline
+ '[' 1 -eq 0 ']'
+ echo Checking if provided DOKKU_SSH_PRIVATE_KEY key requires a passphrase
+ ssh-keygen -y -P '' -f /dev/stdin
Checking if provided DOKKU_SSH_PRIVATE_KEY key requires a passphrase
+ echo '✅ DOKKU_SSH_PRIVATE_KEY does not require a passphrase. OK.'
✅ DOKKU_SSH_PRIVATE_KEY does not require a passphrase. OK.
+ '[' -n notset ']'
+ echo 'AMBER_SECRET is set'
+ echo Installing amber secrets manager
+ mkdir -p ./bin
AMBER_SECRET is set
Installing amber secrets manager
+ curl -L https://github.com/fpco/amber/releases/download/v0.1.3/amber-x86_64-unknown-linux-musl
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100 1446k  100 1446k    0     0  4840k      0 --:--:-- --:--:-- --:--:-- 4840k
+ chmod +x ./amber
+ mv ./amber ./bin/amber
+ PATH=./bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Setup ssh to talk to dokku host
+ echo Setup ssh to talk to dokku host
+ mkdir -p /home/runner/.ssh
+ amber -v exec -- sh -c 'ssh-keyscan $DOKKU_HOST >> ~/.ssh/known_hosts'
[[2](https://github.com/FranklinBWells/container-diihmcg/actions/runs/14536053015/job/40784503701#step:8:2)025-04-18T1[3](https://github.com/FranklinBWells/container-diihmcg/actions/runs/14536053015/job/40784503701#step:8:3):40:38Z DEBUG amber] Cmd { opt: Opt { verbose: true, amber_yaml: None, unmasked: false }, sub: Exec { cmd: "sh", args: ["-c", "ssh-keyscan $DOKKU_HOST >> ~/.ssh/known_hosts"] } }
[2025-0[4](https://github.com/FranklinBWells/container-diihmcg/actions/runs/14536053015/job/40784503701#step:8:4)-18T13:40:38Z DEBUG amber::cli] Checking if file "/home/runner/work/container-diihmcg/container-diihmcg/amber.yaml" exists
[202[5](https://github.com/FranklinBWells/container-diihmcg/actions/runs/14536053015/job/40784503701#step:8:5)-04-18T13:40:38Z DEBUG amber] Setting env var in child process: DOKKU_HOST
[2025-04-1[8](https://github.com/FranklinBWells/container-diihmcg/actions/runs/14536053015/job/40784503701#step:8:8)T13:40:38Z DEBUG amber] Setting env var in child process: DJANGO_DEBUG
[2025-04-18T13:40:38Z DEBUG amber] Setting env var in child process: GIT_REPO_NAME
[2025-04-18T[13](https://github.com/FranklinBWells/container-diihmcg/actions/runs/14536053015/job/40784503701#step:8:13):40:38Z DEBUG amber] Setting env var in child process: DJANGO_ALLOWED_HOSTS
[2025-04-18T13:40:38Z DEBUG amber] Setting env var in child process: DB_USER
[2025-04-18T13:40:38Z DEBUG amber] Setting env var in child process: DJANGO_DB_PORT
[2025-04-[18](https://github.com/FranklinBWells/container-diihmcg/actions/runs/14536053015/job/40784503701#step:8:19)T13:40:38Z DEBUG amber] Setting env var in child process: DJANGO_SECRET_KEY
[2025-04-18T13:40:38Z DEBUG amber] Setting env var in child process: DB_PASSWORD
[[20](https://github.com/FranklinBWells/container-diihmcg/actions/runs/14536053015/job/40784503701#step:8:21)25-04-18T13:40:38Z DEBUG amber] Setting env var in child process: SSH_CONFIG_FILE
[2025-04-18T13:40:38Z DEBUG amber] Setting env var in child process: ALLOWED_HOSTS
[2025-04-18T13:40:38Z DEBUG amber] Setting env var in child process: RAILS_DATABASE_URL
[20[25](https://github.com/FranklinBWells/container-diihmcg/actions/runs/14536053015/job/40784503701#step:8:26)-04-18T13:40:38Z DEBUG amber] Setting env var in child process: DB_PORT
[2025-04-18T13:40:38Z DEBUG amber] Setting env var in child process: DB_HOST
[2025-04-18T13:40:38Z DEBUG amber] Setting env var in child process: DB_NAME
[2025-04-18T13:40:38Z DEBUG amber] Setting env var in child process: CONTAINER_HOSTING_API_KEY
[2025-04-18T13:40:38Z DEBUG amber] Setting env var in child process: DJANGO_DB_HOST
[2025-04-18T13:40:[38](https://github.com/FranklinBWells/container-diihmcg/actions/runs/14536053015/job/40784503701#step:8:39)Z DEBUG amber] Setting env var in child process: DJANGO_DB_NAME
[2025-04-18T13:[40](https://github.com/FranklinBWells/container-diihmcg/actions/runs/14536053015/job/40784503701#step:8:41):38Z DEBUG amber] Setting env var in child process: DJANGO_DB_PASSWORD
[2025-04-18T13:40:38Z DEBUG amber] Setting env var in child process: DJANGO_ENGINE
[2025-04-18T13:40:38Z DEBUG amber] Setting env var in child process: GIT_USERNAME_OR_ORG
[2025-04-18T13:40:38Z DEBUG amber] Setting env var in child process: RUNNING_WITHIN_CI_PIPELINE
[2025-04-18T13:40:38Z DEBUG amber] Setting env var in child process: DJANGO_DB_USER
Error: Process completed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions