Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit cab0d38

Browse files
authored
Api fix and CI cleanup (#78)
* Api fix and CI cleanup * update json
1 parent c6ff54c commit cab0d38

14 files changed

+39
-160
lines changed

.circleci/build_and_push_to_dockerhub.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

.circleci/build_and_push_to_github_release.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

.circleci/check_version_trigger_release.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

.circleci/config.yml

Lines changed: 1 addition & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -66,47 +66,6 @@ jobs:
6666
name: trigger
6767
command: |
6868
.circleci/trigger_func_test.sh develop
69-
release:
70-
docker:
71-
- image: circleci/ruby:2.6.1-node-browsers
72-
working_directory: ~/repo
73-
steps:
74-
- attach_workspace:
75-
at: /tmp
76-
- checkout
77-
- setup_remote_docker:
78-
reusable: true
79-
- run:
80-
name: Install dependencies
81-
command: |
82-
.circleci/install_dep.sh
83-
- run:
84-
name: Build and push docker image to dockerhub
85-
command: |
86-
.circleci/build_and_push_to_dockerhub.sh
87-
- run:
88-
name: Upload gem to Github
89-
command: |
90-
.circleci/build_and_push_to_github_release.sh
91-
- run:
92-
name: Upload gem to Ruby Gem
93-
command: |
94-
.circleci/push_gems_to_rubygems.sh
95-
96-
check_version:
97-
docker:
98-
- image: circleci/ruby:2.6.1-node-browsers
99-
working_directory: ~/repo
100-
steps:
101-
- attach_workspace:
102-
at: /tmp
103-
- checkout
104-
- setup_remote_docker:
105-
reusable: true
106-
- run:
107-
name: Check VERSION file for change
108-
command: |
109-
.circleci/check_version_trigger_release.sh
11069
11170
workflows:
11271
version: 2
@@ -126,28 +85,4 @@ workflows:
12685
- unit_test
12786
- func_test_develop:
12887
requires:
129-
- unit_test
130-
- check_version:
131-
requires:
132-
- unit_test
133-
filters:
134-
branches:
135-
only: develop
136-
release:
137-
jobs:
138-
- build:
139-
filters:
140-
branches:
141-
only: master
142-
- unit_test:
143-
requires:
144-
- build
145-
- func_test_master:
146-
requires:
147-
- unit_test
148-
- func_test_develop:
149-
requires:
150-
- unit_test
151-
- release:
152-
requires:
153-
- unit_test
88+
- unit_test

.circleci/gem_credentials

Lines changed: 0 additions & 2 deletions
This file was deleted.

.circleci/push_gem.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

.circleci/push_gems_to_rubygems.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

.circleci/trigger_func_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ curl -X POST --header "Content-Type: application/json" \
1111
-d '{"build_parameters": {"CIRCLE_JOB":"build_test", "TRIG_BRANCH":"'"$CIRCLE_BRANCH"'", "TRIG_PROJECT":"'"$CIRCLE_PROJECT_REPONAME"'", "TRIG_REPO":"'"$CIRCLE_REPOSITORY_URL"'"}}' "https://circleci.com/api/v1/project/$ORGANIZATION/$PROJECT/tree/$BRANCH?circle-token=$CIRCLE_TOKEN" > build.json
1212
cat build.json
1313
BUILD_NUM=$(jq -r .build_num build.json)
14+
sleep 10
1415

1516
# Wait until finish or maximum 20 minutes
1617
TIMEOUT=20

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ GEM
4646
http-parser (1.2.1)
4747
ffi-compiler (>= 1.0, < 2.0)
4848
http_parser.rb (0.5.3)
49-
json (2.1.0)
49+
json (2.3.1)
5050
kubeclient (4.6.0)
5151
http (>= 3.0, < 5.0)
5252
recursive-open-struct (~> 1.0, >= 1.0.4)

Makefile

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
VERSION := $(shell sh -c 'cat VERSION')
22

3-
clean:
4-
@rm -rf pkg/* docker/gem/ docker/gems/ docker/*.gem docker/licenses
3+
clean_pkg:
4+
@rm -rf pkg/* docker/*.gem
55

6-
build: clean
6+
clean_gems:
7+
@rm -rf docker/gem/ docker/gems/
8+
9+
clean: clean_pkg clean_gems
10+
@rm -rf docker/licenses
11+
12+
build: clean_pkg
713
@bundle exec rake build
814

915
docker: build install-deps
@@ -18,4 +24,9 @@ unit-test:
1824
install-deps:
1925
@gem install bundler
2026
@bundle update --bundler
21-
@bundle install
27+
@bundle install
28+
29+
unpack: build
30+
@cp pkg/fluent-plugin-*.gem docker
31+
@gem unpack docker/fluent-plugin-*.gem --target docker/gem
32+
@cd docker && bundle install

0 commit comments

Comments
 (0)