Skip to content

Commit fdc7336

Browse files
committed
Enable the ami builds
1 parent 82f620a commit fdc7336

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/binary-publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,28 @@ jobs:
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:

0 commit comments

Comments
 (0)