58
58
name : Create release draft
59
59
runs-on : ubuntu-latest
60
60
steps :
61
- - id : only_tag
62
- run : echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"
63
61
- uses : actions/checkout@v2
64
62
with :
65
63
ref : ${{ github.event.inputs.commit_ref }}
90
88
env :
91
89
SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
92
90
SLACK_ICON : https://github.com/actions.png?size=48
93
- SLACK_MESSAGE : " Release draft for move2kube-operator ${{ steps.only_tag.outputs .tag }} created: https://github.com/konveyor/move2kube-operator/releases"
91
+ SLACK_MESSAGE : " Release draft for move2kube-operator ${{ github.event.inputs .tag }} created: https://github.com/konveyor/move2kube-operator/releases"
94
92
SLACK_TITLE : Success
95
93
SLACK_USERNAME : GitHubActions
96
94
@@ -99,26 +97,22 @@ jobs:
99
97
name : Image build
100
98
runs-on : ubuntu-latest
101
99
steps :
102
- - id : only_tag
103
- run : echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"
104
100
- uses : actions/checkout@v2
105
101
with :
106
102
ref : ${{ github.event.inputs.commit_ref }}
107
103
- name : build
108
104
run : |
109
- VERSION=${{ steps.only_tag.outputs.tag }} make docker-build
110
- VERSION=${{ steps.only_tag.outputs.tag }} make bundle-build
111
- - name : Push images to quay
112
- run : |
113
- echo "${{ secrets.QUAY_BOT_PASSWORD }}" | docker login --username "${{ secrets.QUAY_BOT_USERNAME }}" --password-stdin quay.io
114
- VERSION=${{ steps.only_tag.outputs.tag }} make docker-push
115
- docker push quay.io/konveyor/move2kube-bundle:${{ steps.only_tag.outputs.tag }}
105
+ VERSION=${{ github.event.inputs.tag }} make docker-build
106
+ VERSION=${{ github.event.inputs.tag }} make bundle-build
107
+ - run : echo "${{ secrets.QUAY_BOT_PASSWORD }}" | docker login --username "${{ secrets.QUAY_BOT_USERNAME }}" --password-stdin quay.io
108
+ - name : push the image to quay
109
+ run : VERSION='${{ github.event.inputs.tag }}' make docker-push
116
110
- name : success slack notification
117
111
uses : rtCamp/action-slack-notify@v2
118
112
env :
119
113
SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
120
114
SLACK_ICON : https://github.com/actions.png?size=48
121
- SLACK_MESSAGE : " Built and pushed quay.io/konveyor/move2kube-operator:${{ steps.only_tag.outputs .tag }}"
115
+ SLACK_MESSAGE : " Built and pushed quay.io/konveyor/move2kube-operator:${{ github.event.inputs .tag }}"
122
116
SLACK_TITLE : Success
123
117
SLACK_USERNAME : GitHubActions
124
118
- if : failure()
@@ -128,7 +122,7 @@ jobs:
128
122
SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
129
123
SLACK_COLOR : " #BD3232"
130
124
SLACK_ICON : https://github.com/actions.png?size=48
131
- SLACK_MESSAGE : " Failed to build and push image quay.io/konveyor/move2kube-operator:${{ steps.only_tag.outputs .tag }}"
125
+ SLACK_MESSAGE : " Failed to build and push image quay.io/konveyor/move2kube-operator:${{ github.event.inputs .tag }}"
132
126
SLACK_TITLE : Failed
133
127
SLACK_USERNAME : GitHubActions
134
128
0 commit comments