Skip to content

Commit 4ec7ef1

Browse files
committed
Update README.md
1 parent 925d25a commit 4ec7ef1

File tree

1 file changed

+60
-13
lines changed

1 file changed

+60
-13
lines changed

README.md

+60-13
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
# Google Cloud Storage file input plugin for Embulk
2-
[![Build Status](https://travis-ci.org/embulk/embulk-input-gcs.svg?branch=master)](https://travis-ci.org/embulk/embulk-input-gcs)
1+
Google Cloud Storage file input plugin for Embulk
2+
===================================================
33

4-
## Overview
4+
Overview
5+
---------
56

6-
embulk-input-gcs v0.3.0+ requires Embulk v0.9.12+
7+
embulk-input-gcs v0.5.0+ requires Embulk v0.11.0+.
78

89
* Plugin type: **file input**
910
* Resume supported: **yes**
1011
* Cleanup supported: **yes**
1112

12-
## Usage
13+
Usage
14+
------
1315

1416
### Install plugin
1517

1618
```
17-
embulk gem install embulk-input-gcs
19+
java -jar embulk-X.Y.Z.jar install "org.embulk:embulk-input-gcs:0.5.0"
1820
```
1921

2022
### Google Service Account Settings
@@ -34,7 +36,7 @@ If you chose "private_key" or "json_key" as [auth_method](#Authentication), you
3436
### run
3537

3638
```
37-
embulk run /path/to/config.yml
39+
java -jar embulk-X.Y.Z.jar run /path/to/config.yml
3840
```
3941

4042
## Configuration
@@ -50,7 +52,8 @@ embulk run /path/to/config.yml
5052
- **json_keyfile** fullpath of json_key (string, required when auth_method is json_key)
5153
- **application_name** application name anything you like (string, optional)
5254

53-
## Example
55+
Example
56+
--------
5457

5558
```yaml
5659
in:
@@ -107,7 +110,8 @@ in:
107110
#path_match_pattern: .csv$|.csv.gz$ # match files whose suffix is .csv or .csv.gz
108111
```
109112

110-
## Authentication
113+
Authentication
114+
---------------
111115

112116
There are three methods supported to fetch access token for the service account.
113117

@@ -168,20 +172,24 @@ in:
168172
auth_method: compute_engine
169173
```
170174
171-
## Eventually Consistency
175+
Eventually Consistency
176+
-----------------------
172177
173178
An operation listing objects is eventually consistent although getting objects is strongly consistent, see https://cloud.google.com/storage/docs/consistency.
174179
175180
`path_prefix` uses the objects list API, therefore it would miss some of objects.
176181
If you want to avoid such situations, you should use `paths` option which directly specifies object paths without the objects list API.
177182

178-
## Build
183+
For Maintainers
184+
----------------
185+
186+
### Build
179187

180188
```
181-
./gradlew gem
189+
./gradlew jar
182190
```
183191
184-
## Test
192+
### Test
185193
186194
To run unit tests, we need to configure the following environment variables.
187195
@@ -230,3 +238,42 @@ $ launchctl getenv GCP_EMAIL //try to get value.
230238

231239
Then start your applications.
232240
```
241+
242+
### Release
243+
244+
Modify `version` in `build.gradle` at a detached commit, and then tag the commit with an annotation.
245+
246+
```
247+
git checkout --detach master
248+
249+
(Edit: Remove "-SNAPSHOT" in "version" in build.gradle.)
250+
251+
git add build.gradle
252+
253+
git commit -m "Release vX.Y.Z"
254+
255+
git tag -a vX.Y.Z
256+
257+
(Edit: Write a tag annotation in the changelog format.)
258+
```
259+
260+
See [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) for the changelog format. We adopt a part of it for Git's tag annotation like below.
261+
262+
```
263+
## [X.Y.Z] - YYYY-MM-DD
264+
265+
### Added
266+
- Added a feature.
267+
268+
### Changed
269+
- Changed something.
270+
271+
### Fixed
272+
- Fixed a bug.
273+
```
274+
275+
Push the annotated tag, then. It triggers a release operation on GitHub Actions after approval.
276+
277+
```
278+
git push -u origin vX.Y.Z
279+
```

0 commit comments

Comments
 (0)