From b7bc9f194891d38002dcb12291813e763a0ab7cb Mon Sep 17 00:00:00 2001 From: ashercaulfield Date: Thu, 18 Apr 2024 16:36:21 +0000 Subject: [PATCH] Added deploy.yml file --- .github/workflows/deploy.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..f43fb48 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,35 @@ +name: Deploy +# ensure that only a single job or workflow using the same concurrency group will run at a time +# See https://docs.github.com/en/actions/using-jobs/using-concurrency +concurrency: deploy +on: + workflow_dispatch: + push: + branches: + - main +jobs: + Deploy: + environment: production + runs-on: ubuntu-latest + env: + RUNNING_WITHIN_CI_PIPELINE: 1 + GIT_USERNAME_OR_ORG: ashercaulfield + GIT_REPO_NAME: container-fsutqem + APP_NAME: container-fsutqem + SSH_CONFIG_FILE: /dev/null + AMBER_SECRET: ${{ secrets.AMBER_SECRET }} + DOKKU_SSH_PRIVATE_KEY: ${{ secrets.DOKKU_SSH_PRIVATE_KEY}} + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server." + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - name: List files in the repository + run: | + ls -la ${{ github.workspace }} + - name: Deploy + run: | + set -x + ./.container-hosting/deploy.sh