@@ -2,39 +2,38 @@ name: Build
2
2
3
3
on :
4
4
push :
5
- branches : [ master ]
5
+ branches : [master]
6
6
7
7
jobs :
8
-
9
- image-build :
10
- name : Image Build
8
+ image_build :
9
+ name : Image build
11
10
runs-on : ubuntu-latest
12
11
steps :
13
- - uses : actions/checkout@v2
14
- - name : Build
15
- run : |
16
- make docker-build
17
- make bundle-build
18
- - name : Push image to quay
19
- run : |
20
- echo "${{ secrets.QUAY_BOT_PASSWORD }}" | docker login --username "${{ secrets.QUAY_BOT_USERNAME }}" --password-stdin quay.io
21
- make docker-push
22
- docker push quay.io/konveyor/move2kube-bundle:latest
23
- - name : Success Slack Notification
24
- uses : rtCamp/action-slack-notify@v2
25
- env :
26
- SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
27
- SLACK_ICON : https://github.com/actions.png?size=48
28
- SLACK_MESSAGE : ' Built and Pushed quay.io/konveyor/move2kube-operator:latest'
29
- SLACK_TITLE : Success
30
- SLACK_USERNAME : GitHubActions
31
- - name : Failure Slack Notification
32
- uses : rtCamp/action-slack-notify@v2
33
- if : failure()
34
- env :
35
- SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
36
- SLACK_COLOR : ' #BD3232'
37
- SLACK_ICON : https://github.com/actions.png?size=48
38
- SLACK_MESSAGE : ' Failed to build and push image quay.io/konveyor/move2kube-operator:latest'
39
- SLACK_TITLE : Failed
40
- SLACK_USERNAME : GitHubActions
12
+ - uses : actions/checkout@v2
13
+ - name : build
14
+ run : |
15
+ make docker-build
16
+ make bundle-build
17
+ - name : push images to quay
18
+ run : |
19
+ echo "${{ secrets.QUAY_BOT_PASSWORD }}" | docker login --username "${{ secrets.QUAY_BOT_USERNAME }}" --password-stdin quay.io
20
+ make docker-push
21
+ docker push quay.io/konveyor/move2kube-bundle:latest
22
+ - name : success slack notification
23
+ uses : rtCamp/action-slack-notify@v2
24
+ env :
25
+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
26
+ SLACK_ICON : https://github.com/actions.png?size=48
27
+ SLACK_MESSAGE : " Built and pushed quay.io/konveyor/move2kube-operator:latest"
28
+ SLACK_TITLE : Success
29
+ SLACK_USERNAME : GitHubActions
30
+ - name : failure slack notification
31
+ uses : rtCamp/action-slack-notify@v2
32
+ if : failure()
33
+ env :
34
+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
35
+ SLACK_COLOR : " #BD3232"
36
+ SLACK_ICON : https://github.com/actions.png?size=48
37
+ SLACK_MESSAGE : " Failed to build and push image quay.io/konveyor/move2kube-operator:latest"
38
+ SLACK_TITLE : Failed
39
+ SLACK_USERNAME : GitHubActions
0 commit comments