File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 11name : Deploy
2- on :
2+ on :
33 push
44
55jobs :
66 my-job :
77 runs-on : ubuntu-latest
88 env :
9- # REPLACE THIS
10- DOCKERHUB_USERNAME : corndeldevopscourse
11- # SET THESE IN GITHUB
12- DOCKERHUB_TOKEN : ' ${{ secrets.DOCKERHUB_TOKEN }}'
13- AZURE_WEBHOOK : ' ${{ secrets.AZURE_WEBHOOK }}'
9+ # REPLACE THIS
10+ DOCKERHUB_USERNAME : aleyipsoftwire
11+ # SET THESE IN GITHUB
12+ DOCKERHUB_TOKEN : ' ${{ secrets.DOCKERHUB_TOKEN }}'
13+ AZURE_WEBHOOK : ' ${{ secrets.AZURE_WEBHOOK }}'
1414 # DECIDE WHETHER YOU WANT A BRANCH CHECK - if so remove the other "if"
1515 # if: github.ref == 'refs/heads/master'
1616 if : github.repository != 'corndeladmin/DevOps-Course-Workshop-Module-13-Learners'
1717 steps :
18- - name : test
19- run : echo ${{ github.repository }}
2018 - name : Checkout repo
2119 uses : actions/checkout@v3
2220 - name : Build image
2624 - name : Push image
2725 run : docker push ${DOCKERHUB_USERNAME}/m13-order-processing-app
2826 - name : Trigger deployment
29- run : curl --fail-with-body -X POST "$AZURE_WEBHOOK"
27+ run : curl --fail-with-body -X POST "$AZURE_WEBHOOK"
You can’t perform that action at this time.
0 commit comments