-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from sparcs-kaist/dev
Main branch update from Dev branch
- Loading branch information
Showing
12 changed files
with
303 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
name: Bug report Template | ||
about: Create a report to help us improve | ||
title: "[Bug] bug-report title" | ||
labels: "\U0001F631 bug" | ||
assignees: '' | ||
|
||
--- | ||
|
||
# Describe the bug | ||
A clear and concise description of what the bug is. | ||
|
||
# To Reproduce | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
# Screenshots | ||
If applicable, add screenshots to help explain your problem. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: Issue Template | ||
about: Suggest an idea for this project | ||
title: issue title | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
# Summary <!-- 간단한 요약. --> | ||
|
||
It implements ... | ||
|
||
# Tasks <!-- 해야 할 태스크 체크리스트로 만들기 --> | ||
|
||
- [ ] Task 1 | ||
- [ ] Task 2 | ||
- [ ] Task 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Summary <!-- PR 내용에 대한 간단한 요약 및 닫는 이슈 번호 표기. --> | ||
|
||
It closes #issue_number | ||
|
||
# Images or Screenshots <!-- PR 변경 사항에 대한 Screenshot이나 .gif 파일 --> | ||
|
||
# Further Work <!-- PR 이후 개설할 이슈 목록 --> | ||
|
||
- Do something... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Create Release and Tag | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- main | ||
|
||
jobs: | ||
if_merged: | ||
if: github.event.pull_request.merged == true | ||
name: Create Release and Tag | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Get previous tag-version | ||
id: previous_tag | ||
uses: WyriHaximus/github-action-get-previous-tag@v1 | ||
with: | ||
fallback: 1.0.0 | ||
|
||
- name: Get next minor tag-version | ||
id: minor_tag | ||
uses: WyriHaximus/github-action-next-semvers@v1 | ||
with: | ||
version: ${{ steps.previous_tag.outputs.tag }} | ||
|
||
- name: Get current time | ||
uses: josStorer/[email protected] | ||
id: date | ||
with: | ||
format: YYYY-MM-DD | ||
utcOffset: "+09:00" | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.minor_tag.outputs.v_patch }} | ||
release_name: ${{ steps.minor_tag.outputs.v_patch }} | ||
body: | | ||
${{ steps.date.outputs.formattedTime }} | ||
Github action released ${{ steps.minor_tag.outputs.v_patch }} | ||
draft: false | ||
prerelease: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Push Prod Image to Amazon ECR | ||
|
||
# when tagging action success | ||
on: | ||
workflow_run: | ||
workflows: ["Create Release and Tag"] | ||
types: | ||
- completed | ||
|
||
env: | ||
AWS_REGION: ap-northeast-2 | ||
|
||
jobs: | ||
if_workflow_success: | ||
name: Build and Push | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Get previous tag-version | ||
id: previous_tag | ||
uses: WyriHaximus/github-action-get-previous-tag@v1 | ||
with: | ||
fallback: 1.0.0 | ||
|
||
- name: Set Tag Version | ||
id: tag | ||
uses: actions/github-script@v4 | ||
with: | ||
script: | | ||
const tagVersion = "${{ steps.previous_tag.outputs.tag }}".replace('v', '') | ||
core.setOutput('tag', tagVersion) | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ env.AWS_REGION }} | ||
|
||
- name: Login to AWS ECR | ||
id: login-ecr | ||
uses: aws-actions/amazon-ecr-login@v1 | ||
|
||
- name: Build and Push to AWS ECR | ||
id: build_image | ||
env: | ||
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | ||
IMAGE_TAG: ${{ steps.tag.outputs.tag }} | ||
ECR_REPOSITORY: taxi-og-generator | ||
run: | | ||
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . | ||
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:latest . | ||
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG | ||
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest | ||
echo "Push image : $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG and latest" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Push Dev Image to Amazon ECR | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- dev | ||
|
||
env: | ||
AWS_REGION: ap-northeast-2 | ||
|
||
jobs: | ||
if_merged: | ||
if: github.event.pull_request.merged == true | ||
name: Create Release and Tag | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ env.AWS_REGION }} | ||
|
||
- name: Login to AWS ECR | ||
id: login-ecr | ||
uses: aws-actions/amazon-ecr-login@v1 | ||
|
||
- name: Build and Push to AWS ECR | ||
id: build_image | ||
env: | ||
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | ||
ECR_REPOSITORY: taxi-og-generator | ||
run: | | ||
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:dev . | ||
docker push $ECR_REGISTRY/$ECR_REPOSITORY:dev | ||
echo "Push image : $ECR_REGISTRY/$ECR_REPOSITORY:dev" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters