File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : eyestalk-beta-test
2+
3+ on : [push]
4+
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+ steps :
9+ -
10+ name : Checkout
11+ uses : actions/checkout@v2
12+ - name : Bump version and push tag
13+ id : tag_version
14+ uses : mathieudutour/github-tag-action@v5.5 # 가져다 쓸 auto tagging 프로그램
15+ with :
16+ github_token : ${{ secrets.GITHUB_TOKEN }} # secrets.GITHUB_TOKEN 는 자동생성됨
17+ - name : Create a GitHub release
18+ uses : actions/create-release@v1
19+ env :
20+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21+ with :
22+ tag_name : ${{ steps.tag_version.outputs.new_tag }}
23+ release_name : Release ${{ steps.tag_version.outputs.new_tag }}
24+ body : ${{ steps.tag_version.outputs.changelog }}
25+ - name : Configure AWS credentials
26+ uses : aws-actions/configure-aws-credentials@v1
27+ with :
28+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
29+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
30+ aws-region : ap-northeast-2
31+ - name : Login to Amazon ECR
32+ id : login-ecr
33+ uses : aws-actions/amazon-ecr-login@v1
34+ - name : Build, tag, and push image to Amazon ECR
35+ id : image-info
36+ env :
37+ ECR_REGISTRY : ${{ steps.login-ecr.outputs.registry }}
38+ ECR_REPOSITORY : eyestalk-python
39+ IMAGE_TAG : ${{ steps.tag_version.outputs.new_tag }}
40+ run : |
41+ docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
42+ docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
You can’t perform that action at this time.
0 commit comments