Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branch merge ( develop -> release ) #15

Merged
merged 2 commits into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Build And Deploy
name: Build and deploy
on:
push:
branches:
- main
- develop
- release
workflow_dispatch:

env:
SERVICE: tks-batch
TAG: ${{github.sha}}
Expand Down Expand Up @@ -44,6 +47,7 @@ jobs:

if [[ ${{github.ref}} == *"develop"* ]]; then
( cd cicd-manifests/${SERVICE}/overlay/development && kustomize edit set image docker.io/sktcloud/${SERVICE}:${TAG} && git add kustomization.yaml )
elif [[ ${{github.ref}} == *"release"* ]]; then
( cd cicd-manifests/${SERVICE}/overlay/ft && kustomize edit set image docker.io/sktcloud/${SERVICE}:${TAG} && git add kustomization.yaml )
elif [[ ${{github.ref}} == *"main"* ]]; then
( cd cicd-manifests/${SERVICE}/overlay/cicd && kustomize edit set image docker.io/sktcloud/${SERVICE}:${TAG} && git add kustomization.yaml )
Expand Down
42 changes: 20 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Build image
name: Build only
on:
pull_request:
branches:
- main
- 'release**'

env:
SERVICE: tks-batch
TAG: ${{github.sha}}
Expand All @@ -12,22 +10,22 @@ jobs:
build-and-push-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Checkout
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: build image
id: docker_build
uses: docker/build-push-action@v2
with:
push: false
tags: |
sktcloud/${{env.SERVICE}}:${{env.TAG}}
- name: build image
id: docker_build
uses: docker/build-push-action@v2
with:
push: false
tags: |
sktcloud/${{env.SERVICE}}:${{env.TAG}}
8 changes: 2 additions & 6 deletions .github/workflows/golangcic-lint.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: golangci-lint
name: Lint
on:
push:
tags:
- v*
branches:
- main
- release**
pull_request:

jobs:
golangci:
name: lint
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 'Close stale issues and PRs'
name: "Close stale issues and PRs"
on:
schedule:
- cron: '30 1,13 * * *'
- cron: "30 1,13 * * *"

jobs:
stale:
Expand All @@ -10,11 +10,11 @@ jobs:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 3 days.'
stale-pr-message: 'This PR is stale because it has been open 3 days with no activity. Remove stale label or comment or this will be closed in 3 days.'
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.'
stale-issue-message: "This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 3 days."
stale-pr-message: "This PR is stale because it has been open 3 days with no activity. Remove stale label or comment or this will be closed in 3 days."
close-issue-message: "This issue was closed because it has been stalled for 5 days with no activity."
close-pr-message: "This PR was closed because it has been stalled for 10 days with no activity."
days-before-issue-stale: 7
days-before-pr-stale: 3
days-before-issue-close: 3
days-before-pr-close: 3
days-before-pr-close: 3
8 changes: 2 additions & 6 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: Unittest
on:
push:
branches:
- main
- release**
pull_request:
branches:
- main
- release**

jobs:
unittest:
runs-on: ubuntu-latest
Expand Down
Loading