{"id":94774,"date":"2020-05-15T00:43:33","date_gmt":"2020-05-14T16:43:33","guid":{"rendered":"http:\/\/4563.org\/?p=94774"},"modified":"2020-05-15T00:43:33","modified_gmt":"2020-05-14T16:43:33","slug":"github-action-%e6%8c%ba%e5%a5%bd%e7%94%a8%e7%9a%84","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=94774","title":{"rendered":"Github Action \u633a\u597d\u7528\u7684"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Github Action \u633a\u597d\u7528\u7684               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : salamanderMH <\/span>  <span><i><\/i> 23<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h1>\u53d1\u73b0<\/h1>\n<p> <\/p>\n<p>Github \u7684 Action \u597d\u7528\u591a\u4e86\uff0c\u611f\u89c9 travis \u6ca1\u5565\u7528\u4e86\uff0cbuild \u955c\u50cf\u4e5f\u6bd4 docker hub \u5feb\u591a\u4e86<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>9<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1228688\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Trim21 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u552f\u4e00\u7684\u7f3a\u70b9\u5c31\u662f steps \u6ca1\u6cd5\u590d\u7528\uff0c\u6240\u4ee5\u6211\u53bb\u7528 azure pipeline \u4e86\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1228689\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mazyi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u786e\u5b9e\u4e0d\u9519\uff0c\u5c31\u662f package \u641e\u5230\u56fd\u5185\u6765\u901f\u5ea6\u6709\u70b9\u6162                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1228690\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : salamanderMH <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Trim21 GitHub Action \u6709 Marketplace\uff0c\u76f4\u63a5\u5957\u7528\u522b\u4eba\u7684\uff0c\u8fd9\u4e2a\u4e0d\u7b97\u590d\u7528\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1228691\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dcalsky <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             push \u5230\u963f\u91cc\u4e91\u5bb9\u5668\u955c\u50cf\u5f88\u6162\uff0c\u65e0\u5948                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1228692\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : salamanderMH <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dcalsky \u90a3\u76f4\u63a5\u7528 Docker hub\uff0c\u7136\u540e\u7528\u56fd\u5185\u7684\u955c\u50cf\u52a0\u901f\u670d\u52a1\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1228693\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Trim21 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @salamanderMH \u4e3e\u4e2a\u4f8b\u5b50\uff0c\u6211\u6709 3 \u4e2a job\uff1alint\uff0ctest\uff0cbuild \u3002\u6bcf\u4e2a job \u90fd\u8981\u5b89\u88c5\u8bed\u8a00\uff0ccache\uff0c\u7136\u540e\u62c9\u53d6\u4f9d\u8d56\u3002\u6240\u4ee5\u8fd9\u4e09\u4e2a\u6b65\u9aa4\u8981\u5728\u4e09\u4e2a job \u91cc\u9762\u5199\u4e09\u904d\u3002\u4f46\u662f azure pipeline \u53ef\u4ee5\u7528 template \u5f15\u7528\u53e6\u4e00\u4e2a\u6587\u4ef6\uff0c\u53ea\u8981\u628a\u8fd9\u4e09\u4e2a\u6b65\u9aa4\u5355\u72ec\u5199\u5728\u4e00\u4e2a\u6587\u4ef6\u91cc\uff0c\u7136\u540e\u5728\u6bcf\u4e2a job \u91cc\u9762\u5206\u522b\u5f15\u7528\u5c31\u597d\u4e86\u3002<\/p>\n<p>\u800c\u4e14 azure \u53ef\u4ee5\u8de8\u9879\u76ee\u5f15\u7528\u6a21\u677f\uff0c\u6211\u7684\u51e0\u4e2a\u9879\u76ee\u91cc 3*\u9879\u76ee\u6570\u7684 job \u53ef\u4ee5\u7528\u540c\u4e00\u4e2a\u6a21\u677f\u6765\u5b8c\u6210\u8fd9\u4e09\u4e2a\u6b65\u9aa4\u3002<\/p>\n<p>GitHub actions \u7684\u7528\u6237\u53cd\u9988\u8bf4\u4ed6\u4eec\u6b63\u5728\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd\u2026                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1228694\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : salamanderMH <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Trim21 \u8fd9\u4e2a\u786e\u5b9e\u6ca1\u6709                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1228695\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dcalsky <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @salamanderMH \u53ea\u6709 VPC \u7f51\u7edc\u7684\u673a\u5668\u6ca1\u6cd5 pull Docker Hub \u7684\u955c\u50cf\uff0c\u6240\u4ee5\u53ea\u80fd push \u5230\u963f\u91cc\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1228696\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tikazyq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e4b\u524d\u7528 dockerhub\uff0cwebhook \u603b\u662f\u5931\u8d25\uff0c\u5c31\u5207\u6362\u5230 github actions \u4e86\uff0c\u53ea\u80fd\u8bf4\u4e00\u53e5\uff0c\u771f\u9999                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Github Action \u633a\u597d\u7528&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/94774"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=94774"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/94774\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=94774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=94774"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=94774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}