Skip to content

Commit 204e17d

Browse files
tobiascadeebveldkamp
authored andcommitted
test deploy script
1 parent 86e34b1 commit 204e17d

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/deploy.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- main
8+
- tobias/create-github-actions-for-deployment
89
workflow_dispatch:
910
inputs:
1011
branch:
@@ -20,36 +21,35 @@ jobs:
2021
deploy-test:
2122
name: Deploy to test environment
2223
runs-on: ubuntu-latest
23-
environment: test
2424
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
25-
26-
2725
steps:
2826
- name: Deploy to test server
2927
uses: appleboy/[email protected]
3028
with:
3129
key: ${{ secrets.SSH_KEY }}
30+
username: voko_acc
31+
host: leden.vokoutrecht.nl
3232
script: |
3333
# Run the deploy script with the specified branch
3434
if [ "${{ github.event_name }}" = "push" ]; then
3535
# Auto-deploy to test environment on push to main
36-
$HOME/scripts/deploy.sh -b main
36+
$HOME/scripts/deploy.sh -b 'tobias/create-github-actions-for-deployment'
3737
else
3838
# Manual deploy with specified branch
3939
$HOME/scripts/deploy.sh -b ${{ github.event.inputs.branch }}
4040
fi
4141
42-
deploy-production:
43-
name: Deploy to production environment
44-
runs-on: ubuntu-latest
45-
environment: production
46-
if: github.event_name == 'push'
42+
# deploy-production:
43+
# name: Deploy to production environment
44+
# runs-on: ubuntu-latest
45+
# environment: production
46+
# if: github.event_name == 'push'
4747

48-
steps:
49-
- name: Deploy to production server
50-
uses: appleboy/[email protected]
51-
with:
52-
key: ${{ secrets.SSH_KEY }}
53-
script: |
54-
# Run the deploy script with the specified branch
55-
$HOME/scripts/deploy.sh -b ${{ github.event.inputs.branch }}
48+
# steps:
49+
# - name: Deploy to production server
50+
# uses: appleboy/[email protected]
51+
# with:
52+
# key: ${{ secrets.SSH_KEY }}
53+
# script: |
54+
# # Run the deploy script with the specified branch
55+
# $HOME/scripts/deploy.sh -b ${{ github.event.inputs.branch }}

0 commit comments

Comments
 (0)