@@ -46,40 +46,40 @@ jobs:
46
46
docker-password : ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
47
47
project-name : ${{ env.PROJECT_NAME }}
48
48
49
- deploy-prod :
50
- runs-on : ubuntu-22.04
51
- if : github.ref == 'refs/heads/prod'
52
- # needs: test
53
- concurrency : deploy-prod
54
- env :
55
- SERVER_PORT : 1006
56
- DOCKER_TAG : ${{ github.sha }}
57
- steps :
58
- - name : Checkout source code
59
- uses : actions/checkout@v4
60
-
61
- - name : Create .env file
62
- uses : noi-techpark/github-actions/env-file@v2
63
- with :
64
- working-directory : ${{ env.WORKING_DIRECTORY }}
65
- env :
66
- X_SERVER_PORT : ${{ env.SERVER_PORT }}
67
- X_DOCKER_IMAGE : ${{ env.DOCKER_IMAGE }}
68
- X_DOCKER_TAG : ${{ env.DOCKER_TAG }}
69
-
70
- - name : Build and push images
71
- uses : noi-techpark/github-actions/docker-build-and-push@v2
72
- with :
73
- working-directory : infrastructure
74
- docker-username : ${{ github.actor }}
75
- docker-password : ${{ secrets.GITHUB_TOKEN }}
76
-
77
- - name : Deploy application
78
- uses : noi-techpark/github-actions/docker-deploy@v2
79
- with :
80
- working-directory : infrastructure/ansible
81
- hosts : " test"
82
- ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
83
- docker-username : " noi-techpark-bot"
84
- docker-password : ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
85
- project-name : ${{ env.PROJECT_NAME }}
49
+ # deploy-prod:
50
+ # runs-on: ubuntu-22.04
51
+ # if: github.ref == 'refs/heads/prod'
52
+ # # needs: test
53
+ # concurrency: deploy-prod
54
+ # env:
55
+ # SERVER_PORT: 1006
56
+ # DOCKER_TAG: ${{ github.sha }}
57
+ # steps:
58
+ # - name: Checkout source code
59
+ # uses: actions/checkout@v4
60
+ #
61
+ # - name: Create .env file
62
+ # uses: noi-techpark/github-actions/env-file@v2
63
+ # with:
64
+ # working-directory: ${{ env.WORKING_DIRECTORY }}
65
+ # env:
66
+ # X_SERVER_PORT: ${{ env.SERVER_PORT }}
67
+ # X_DOCKER_IMAGE: ${{ env.DOCKER_IMAGE }}
68
+ # X_DOCKER_TAG: ${{ env.DOCKER_TAG }}
69
+ #
70
+ # - name: Build and push images
71
+ # uses: noi-techpark/github-actions/docker-build-and-push@v2
72
+ # with:
73
+ # working-directory: infrastructure
74
+ # docker-username: ${{ github.actor }}
75
+ # docker-password: ${{ secrets.GITHUB_TOKEN }}
76
+ #
77
+ # - name: Deploy application
78
+ # uses: noi-techpark/github-actions/docker-deploy@v2
79
+ # with:
80
+ # working-directory: infrastructure/ansible
81
+ # hosts: "test"
82
+ # ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
83
+ # docker-username: "noi-techpark-bot"
84
+ # docker-password: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
85
+ # project-name: ${{ env.PROJECT_NAME }}
0 commit comments