Skip to content

Refactor: Migrate to com.github.Gunosy and GitHub Actions - #1

Merged
redfit merged 15 commits into
developfrom
adnw-7758
Mar 17, 2026
Merged

Refactor: Migrate to com.github.Gunosy and GitHub Actions#1
redfit merged 15 commits into
developfrom
adnw-7758

Conversation

@redfit

@redfit redfit commented Mar 17, 2026

Copy link
Copy Markdown

概要

パッケージ名の変更とCI/CDの刷新を行います。

主な変更内容

1. パッケージ名の変更

  • pro.civitaspocom.github.Gunosy に全面的に変更
  • ディレクトリ構造も対応して変更
  • 全てのScalaソースファイル、設定ファイルを更新

2. CI/CDの移行

  • CircleCI → GitHub Actions に移行
  • CircleCIの設定ファイルを削除
  • 3つのワークフローを追加:
    • ci.yml: develop/mainブランチへのpush/PR時にビルド・テスト実行
    • release.yml: mainブランチのタグpush時にリリースを自動作成
    • git-pr-release.yml: developへのpush時にmainへのリリースPRを自動作成

3. Docker対応

  • Dockerfile と docker-compose.yml を追加
  • ローカルでのビルド・テスト環境を整備
  • Eclipse Temurin JDK 8 を使用

4. JitPack対応

  • mainブランチのタグをpushすると自動的にJitPackでビルドが実行される
  • GitHub Releaseも自動作成される
  • テスト済み: v0.4.1-test でJitPackへのアップロード成功を確認

5. バージョン更新

  • プロジェクトバージョン: 0.4.0 → 0.4.1
  • digdag依存: 0.9.39 → 0.9.42

6. mainブランチの作成

  • リリース用のmainブランチを作成
  • developブランチは開発用として継続使用

テスト結果

  • ✅ Docker環境でビルドが成功
  • ✅ GitHub Actionsでビルドが成功
  • ✅ JitPackへのアップロードが成功(v0.4.1-testで検証済み)

破壊的変更

パッケージ名が変更されているため、既存のユーザーは依存関係の更新が必要です:

Before:

dependencies:
  - pro.civitaspo:digdag-operator-athena:0.3.2

After:

dependencies:
  - com.github.Gunosy:digdag-operator-athena:0.4.1

リリース手順

  1. このPRをdevelopブランチにマージ
  2. git-pr-releaseが自動的にdevelop→mainのリリースPRを作成
  3. リリースPRをレビュー・マージ
  4. mainブランチでタグを作成: git tag v0.4.1
  5. タグをpush: git push origin v0.4.1
  6. GitHub Actionsが自動実行され、JitPackで公開される

JitPackへのリリース

testバージョンがリリースされているのを確認
image

関連Issue

ADNW-7758

redfit and others added 13 commits March 17, 2026 11:07
…unosy

This commit updates the project namespace across all files to reflect the new organizational structure. All package declarations, imports, and references have been updated from pro.civitaspo to com.github.Gunosy.

Changes include:
- Renamed directory structure from src/main/scala/pro/civitaspo to src/main/scala/com/github/Gunosy
- Updated all Scala source files with new package declarations and imports
- Updated build.gradle group identifier
- Updated META-INF/services plugin configuration
- Updated documentation and examples

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
CircleCI badge has been removed as it references the original repository.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add GitHub Actions workflow for CI builds
- Disable CircleCI workflow by commenting out the workflows section
- GitHub Actions workflow runs on push/PR to develop and main branches
- Uses Temurin JDK 8 distribution with Gradle caching
- Uploads build artifacts with 7-day retention

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Temporary change to test GitHub Actions workflow on the current branch.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add Dockerfile with OpenJDK 8 for building the project
- Add docker-compose.yml with separate build and test services
- Add .dockerignore to exclude unnecessary files
- Add DOCKER.md with usage instructions
- Gradle cache is persisted in a Docker volume for faster builds

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Change FROM openjdk:8-jdk to eclipse-temurin:8-jdk
- Remove version from docker-compose.yml (deprecated)
- Remove pre-build step from Dockerfile to speed up image creation
- Tests and build pass successfully in Docker

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add GitHub Actions workflow for creating releases on tag push
- Workflow builds the project and creates GitHub Release
- Automatically triggers JitPack build for the new version
- Update DOCKER.md with release instructions

Usage:
  git tag v0.4.1
  git push origin v0.4.1

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add test execution before build in CI workflow
- Add test execution before build in release workflow
- Ensures tests pass before creating artifacts or releases

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Bump project version from 0.4.0 to 0.4.1
- Update digdag dependency from 0.9.39 to 0.9.42 for compatibility

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
CircleCI configuration has been fully replaced by GitHub Actions.
GitHub Actions provides equivalent functionality with additional features:
- Explicit test execution
- Artifact uploads
- Automated releases via tags

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add check to ensure tags are created from main branch
- Prevents accidental releases from development branches
- Fetch full git history to check branch ancestry

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Automatically creates release PR from develop to main
- Triggered on push to develop branch
- Uses bakunyo/git-pr-release-action

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove temporary adnw-7758 branch from CI triggers
- Clean up test configuration

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

@shotahirao shotahirao left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@redfit
jcenter()とdl.bintray.comが閉鎖済みなので削除お願いします🙏

jcenter()
maven {
url 'https://dl.bintray.com/digdag/maven'
}

- Remove jcenter (shut down in 2022)
- Remove bintray/digdag/maven (shut down in 2021)
- Keep only mavenCentral which is actively maintained

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@redfit

redfit commented Mar 17, 2026

Copy link
Copy Markdown
Author

@shotahirao ありがとうございます!
こちらで対応しました 🙇

9d304ca

@shotahirao

Copy link
Copy Markdown

@redfit
あと細かいですがREADMEのバージョンなどこのタイミングで更新したほうが良いかなと思いました。※バージョン以外にもあるかもですが、一旦バージョンだけ気になりました。

- com.github.Gunosy:digdag-operator-athena:0.4.0

@shotahirao shotahirao left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

細かいところコメントしましたが、あとはOKなのでLGTMです!

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@redfit
redfit merged commit 2474f44 into develop Mar 17, 2026
1 check passed
@github-actions github-actions Bot mentioned this pull request Mar 17, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants