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
29273028 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- 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