Update .github/workflows/CD.yml
All checks were successful
Build and Push Docker Image / testing (1.24.x, ubuntu-latest) (push) Successful in 1m8s
Build and Push Docker Image / build-and-push (push) Successful in 10m24s

This commit is contained in:
2025-04-29 16:25:11 -04:00
parent e27ac12296
commit 6b87fde7d1

View File

@ -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'