Skip to content

Commit

Permalink
Merge pull request #17 from openinfradev/release
Browse files Browse the repository at this point in the history
release -> main merge (20220808)
  • Loading branch information
ktkfree authored Aug 8, 2023
2 parents adae5eb + daf3507 commit a942545
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 42 deletions.
7 changes: 6 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,9 +47,11 @@ 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 )
( cd cicd-manifests/${SERVICE}/overlay/prd && kustomize edit set image docker.io/sktcloud/${SERVICE}:${TAG} && git add kustomization.yaml )
fi
cd cicd-manifests
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

0 comments on commit a942545

Please sign in to comment.