Skip to content

Commit

Permalink
update: git workflows trigger (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
coding-convention committed Jun 30, 2023
1 parent 993b61c commit c393136
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/Build-Deploy-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: DEV Build-and-Deploy CI/CD

on:
push:
# branches: [ 'dev' ]
branches: '**'
branches: [ 'dev' ]

workflow_dispatch:

Expand Down Expand Up @@ -71,8 +70,6 @@ jobs:
docker push $ECR_REGISTRY/$ECR_REPOSITORY:dev-$DATE
docker push $ECR_REGISTRY/$ECR_REPOSITORY:dev-latest
echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:dev-$DATE"
# - name: Build, tag, and push server-main image to Amazon ECR
# if: contains(github.ref, 'main')
# id: build-image
Expand All @@ -86,8 +83,6 @@ jobs:
# docker push $ECR_REGISTRY/$ECR_REPOSITORY:main-$DATE
# docker push $ECR_REGISTRY/$ECR_REPOSITORY:main-latest

# echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:main-$DATE"

deploy:
needs: build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -116,4 +111,4 @@ jobs:
# script: |
# docker pull $ECR_REGISTRY/$ECR_REPOSITORY:main-latest
# docker stop $ECR_REPOSITORY
# docker run --rm -p 8080:8080 --name kumo-server $ECR_REGISTRY/$ECR_REPOSITORY:main-latest
# docker run --rm -d -p 8080:8080 --name kumo-server $ECR_REGISTRY/$ECR_REPOSITORY:main-latest
6 changes: 3 additions & 3 deletions .github/workflows/Build-Test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: KUMO-SERVER-Build-Test-on-Push CI/CD
name: Build Test CI/CD

on:
pull_request:
branches: ['main', 'dev']
push:
branches: '**'

jobs:
build:
Expand Down

0 comments on commit c393136

Please sign in to comment.