Refactor deploy steps logic in pipeline-test.yaml file
All checks were successful
Build and Deploy Hugo Site / build_and_deploy (push) Successful in 16s
All checks were successful
Build and Deploy Hugo Site / build_and_deploy (push) Successful in 16s
This commit is contained in:
parent
739c7a4365
commit
e6d663535c
1 changed files with 5 additions and 8 deletions
|
|
@ -25,6 +25,9 @@ jobs:
|
||||||
file: 'hugo.toml'
|
file: 'hugo.toml'
|
||||||
field: 'environment'
|
field: 'environment'
|
||||||
|
|
||||||
|
- name: Echo environment
|
||||||
|
run: echo "Environment is ${{ steps.read_toml.outputs.environment }}"
|
||||||
|
|
||||||
# - name: Set up Go
|
# - name: Set up Go
|
||||||
# uses: actions/setup-go@v5.0.0
|
# uses: actions/setup-go@v5.0.0
|
||||||
# with:
|
# with:
|
||||||
|
|
@ -76,17 +79,11 @@ jobs:
|
||||||
|
|
||||||
- name: Deploy to Development
|
- name: Deploy to Development
|
||||||
if: steps.read_toml.outputs.environment == 'development'
|
if: steps.read_toml.outputs.environment == 'development'
|
||||||
run: |
|
run: echo "Running steps for Development Environment"
|
||||||
rsync -avz --delete ./public/ verua.info@verua.info:/preview.verua.info/
|
|
||||||
env:
|
|
||||||
RSYNC_RSH: 'ssh -p 2121 -o StrictHostKeyChecking=no'
|
|
||||||
|
|
||||||
- name: Deploy to Production
|
- name: Deploy to Production
|
||||||
if: steps.read_toml.outputs.environment == 'production'
|
if: steps.read_toml.outputs.environment == 'production'
|
||||||
run: |
|
run: echo "Running steps for Production Environment"
|
||||||
rsync -avz --delete ./public/ verua.info@verua.info:/httpdocs/
|
|
||||||
env:
|
|
||||||
RSYNC_RSH: 'ssh -p 2121 -o StrictHostKeyChecking=no'
|
|
||||||
|
|
||||||
# - name: Deploy to Development
|
# - name: Deploy to Development
|
||||||
# if: env.myEnv_env == 'development'
|
# if: env.myEnv_env == 'development'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue