diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index ca4d5cf..e77ae62 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -1,33 +1,16 @@ name: Deploy Project -inputs: - Version: - description: application version that you are deploying - required: true - # GITHUB_TOKEN: - # description: token used to call workflow - # required: true - Branch: - description: github branch where CD workflow is supposed to run - required: false - default: develop - on: workflow_dispatch: - branches: - - develop - paths-ignore: - - 'README.md' -# - '.github/**' -# inputs: -# Version: -# description: Application Version -# type: string -# required: true -# Env: -# description: Deployment Environment -# type: environment -# required: true + inputs: + Version: + description: Application Version + type: string + required: true + Env: + description: Deployment Environment + type: environment + required: false jobs: # on-success: @@ -46,8 +29,22 @@ jobs: runs-on: ubuntu-latest # if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - - uses: actions/checkout@v4 + # - uses: actions/checkout@v4 + - name: Dump inputs context + env: + INPUTS_CONTEXT: ${{ toJson(inputs) }} + - name: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: echo "$GITHUB_CONTEXT" + - name: Dump job context + env: + JOB_CONTEXT: ${{ toJson(job) }} + run: echo "$JOB_CONTEXT" + - name: Dump steps context + env: + STEPS_CONTEXT: ${{ toJson(steps) }} - name: Setup SSH shell: bash run: | @@ -64,4 +61,5 @@ jobs: shell: bash run: | ssh -tt -o StrictHostKeyChecking=no gitea@${{secrets.SSH_HOST}} 'whoami' + ssh -tt -o StrictHostKeyChecking=no gitea@${{secrets.SSH_HOST}} 'docker pull docker.savin.nyc/go-receipt-tracker:nightly' \ No newline at end of file