Skip to content

Commit a942545

Browse files
authored
Merge pull request #17 from openinfradev/release
release -> main merge (20220808)
2 parents adae5eb + daf3507 commit a942545

File tree

5 files changed

+37
-42
lines changed

5 files changed

+37
-42
lines changed

.github/workflows/build-deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
name: Build And Deploy
1+
name: Build and deploy
22
on:
33
push:
44
branches:
55
- main
66
- develop
7+
- release
8+
workflow_dispatch:
9+
710
env:
811
SERVICE: tks-batch
912
TAG: ${{github.sha}}
@@ -44,9 +47,11 @@ jobs:
4447
4548
if [[ ${{github.ref}} == *"develop"* ]]; then
4649
( cd cicd-manifests/${SERVICE}/overlay/development && kustomize edit set image docker.io/sktcloud/${SERVICE}:${TAG} && git add kustomization.yaml )
50+
elif [[ ${{github.ref}} == *"release"* ]]; then
4751
( cd cicd-manifests/${SERVICE}/overlay/ft && kustomize edit set image docker.io/sktcloud/${SERVICE}:${TAG} && git add kustomization.yaml )
4852
elif [[ ${{github.ref}} == *"main"* ]]; then
4953
( cd cicd-manifests/${SERVICE}/overlay/cicd && kustomize edit set image docker.io/sktcloud/${SERVICE}:${TAG} && git add kustomization.yaml )
54+
( cd cicd-manifests/${SERVICE}/overlay/prd && kustomize edit set image docker.io/sktcloud/${SERVICE}:${TAG} && git add kustomization.yaml )
5055
fi
5156
5257
cd cicd-manifests

.github/workflows/build.yml

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
name: Build image
1+
name: Build only
22
on:
33
pull_request:
4-
branches:
5-
- main
6-
- 'release**'
4+
75
env:
86
SERVICE: tks-batch
97
TAG: ${{github.sha}}
@@ -12,22 +10,22 @@ jobs:
1210
build-and-push-image:
1311
runs-on: ubuntu-latest
1412
steps:
15-
- name: Checkout
16-
uses: actions/checkout@v2
17-
18-
- name: Set up Docker Buildx
19-
uses: docker/setup-buildx-action@v1
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v1
18+
19+
- name: Login to DockerHub
20+
uses: docker/login-action@v1
21+
with:
22+
username: ${{ secrets.DOCKERHUB_USERNAME }}
23+
password: ${{ secrets.DOCKERHUB_TOKEN }}
2024

21-
- name: Login to DockerHub
22-
uses: docker/login-action@v1
23-
with:
24-
username: ${{ secrets.DOCKERHUB_USERNAME }}
25-
password: ${{ secrets.DOCKERHUB_TOKEN }}
26-
27-
- name: build image
28-
id: docker_build
29-
uses: docker/build-push-action@v2
30-
with:
31-
push: false
32-
tags: |
33-
sktcloud/${{env.SERVICE}}:${{env.TAG}}
25+
- name: build image
26+
id: docker_build
27+
uses: docker/build-push-action@v2
28+
with:
29+
push: false
30+
tags: |
31+
sktcloud/${{env.SERVICE}}:${{env.TAG}}

.github/workflows/golangcic-lint.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
name: golangci-lint
1+
name: Lint
22
on:
33
push:
4-
tags:
5-
- v*
6-
branches:
7-
- main
8-
- release**
94
pull_request:
5+
106
jobs:
117
golangci:
128
name: lint

.github/workflows/stale.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: 'Close stale issues and PRs'
1+
name: "Close stale issues and PRs"
22
on:
33
schedule:
4-
- cron: '30 1,13 * * *'
4+
- cron: "30 1,13 * * *"
55

66
jobs:
77
stale:
@@ -10,11 +10,11 @@ jobs:
1010
- uses: actions/stale@v3
1111
with:
1212
repo-token: ${{ secrets.GITHUB_TOKEN }}
13-
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.'
14-
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.'
15-
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
16-
close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.'
13+
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."
14+
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."
15+
close-issue-message: "This issue was closed because it has been stalled for 5 days with no activity."
16+
close-pr-message: "This PR was closed because it has been stalled for 10 days with no activity."
1717
days-before-issue-stale: 7
1818
days-before-pr-stale: 3
1919
days-before-issue-close: 3
20-
days-before-pr-close: 3
20+
days-before-pr-close: 3

.github/workflows/unittest.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1+
name: Unittest
12
on:
23
push:
3-
branches:
4-
- main
5-
- release**
64
pull_request:
7-
branches:
8-
- main
9-
- release**
5+
106
jobs:
117
unittest:
128
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)