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