File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 steps :
3434 - name : Checkout Repository
3535 uses : actions/checkout@v2
36+ - name : building binaries for ami
37+ uses : appleboy/ssh-action@v0.1.7
38+ env :
39+ VERSION : ${{ github.event.release.tag_name }}
40+ with :
41+ host : ${{ secrets.AWS_BUILD_HOST }}
42+ username : ${{ secrets.AWS_BUILD_USERNAME }}
43+ key : ${{ secrets.AWS_BUILD_KEY }}
44+ port : 22
45+ envs : VERSION
46+ script : |
47+ export PATH=$PATH:/usr/local/go/bin && sh build.sh ${VERSION}
48+ - name : Build AMI
49+ uses : hashicorp/packer-github-actions@master
50+ with :
51+ command : build
52+ target : " ./ami.json"
53+ env :
54+ PACKER_LOG : 1
55+ AWS_ACCESS_KEY : ${{ secrets.AWS_ACCESS_KEY }}
56+ AWS_SECRET_KEY : ${{ secrets.AWS_SECRET_KEY }}
57+ VERSION : ${{ github.event.release.tag_name }}
3658 - name : building binaries for eaas deployments
3759 uses : appleboy/ssh-action@v0.1.7
3860 env :
You can’t perform that action at this time.
0 commit comments