File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
repo-template-files/.github/workflows Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -642,6 +642,7 @@ def add_flask_quickstart():
642642 with open (
643643 f"{ BASE_PATH } tmp-cloned-repos/{ APP_NAME } /.github/workflows/deploy.yml" , "w"
644644 ) as fp :
645+ deploy_yml = deploy_yml .replace ("$APP_NAME" , APP_NAME )
645646 deploy_yml = deploy_yml .replace ("$GIT_USERNAME_OR_ORG" , username )
646647 deploy_yml = deploy_yml .replace ("$GIT_REPO_NAME" , repo_name )
647648 fp .write (deploy_yml )
Original file line number Diff line number Diff line change 3131 set -x
3232 ./.container-hosting/deploy.sh
3333
34+ name : Deploy
35+ on :
36+ workflow_dispatch :
37+ push :
38+ branches :
39+ - main
40+
41+ jobs :
42+ Deploy :
43+ environment : production
44+ runs-on : ubuntu-latest
45+ env :
46+ RUNNING_WITHIN_CI_PIPELINE : 1
47+ GIT_USERNAME_OR_ORG : $GIT_USERNAME_OR_ORG
48+ GIT_REPO_NAME : $GIT_REPO_NAME
49+ APP_NAME : $APP_NAME
50+ SSH_CONFIG_FILE : /dev/null
51+ AMBER_SECRET : ${{ secrets.AMBER_SECRET }}
52+ DOKKU_SSH_PRIVATE_KEY : ${{ secrets.DOKKU_SSH_PRIVATE_KEY}}
53+ steps :
54+ - run : echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
55+ - run : echo "🐧 This job is now running on a ${{ runner.os }} server."
56+ - run : echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
57+ - name : Check out repository code
58+ uses : actions/checkout@v3
59+ - run : echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
60+ - name : List files in the repository
61+ run : |
62+ ls -la ${{ github.workspace }}
63+ - name : Deploy
64+ run : |
65+ set -x
66+ ./.container-hosting/deploy.sh
You can’t perform that action at this time.
0 commit comments