From f21819d7e902b534d584228c902736e61246d768 Mon Sep 17 00:00:00 2001 From: Jun Sakata Date: Thu, 25 Apr 2024 17:06:05 +0900 Subject: [PATCH 1/2] add ci to publish images --- .github/workflows/release.yml | 24 ++++++++++++++++++++++++ .github/workflows/release_nightly.yml | 20 ++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/release_nightly.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a5a0760 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +name: Publish Docker image +on: + release: + types: [published] +jobs: + push_to_registry: + name: Push Docker image to GitHub Docker Registry + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: docker/login-action@v3 + with: + registry: docker.pkg.github.com + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - id: meta + uses: docker/metadata-action@v5 + with: + images: docker.pkg.github.com/ubie-oss/flow/flow + - uses: docker/build-push-action@v5 + with: + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml new file mode 100644 index 0000000..4dabcc7 --- /dev/null +++ b/.github/workflows/release_nightly.yml @@ -0,0 +1,20 @@ +name: Publish nightly Docker image +on: + push: + branches: + - main +jobs: + push: + name: Push Docker image to GitHub Docker Registry + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: docker/login-action@v3 + with: + registry: docker.pkg.github.com + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - uses: docker/build-push-action@v5 + with: + push: true + tags: docker.pkg.github.com/ubie-oss/flow/flow:latest From b7abdac8fd1d9c861d847cbc68f0cbc00f2e340d Mon Sep 17 00:00:00 2001 From: Jun Sakata Date: Thu, 25 Apr 2024 17:07:58 +0900 Subject: [PATCH 2/2] remake pkg --- flow/process.go | 2 +- go.mod | 2 +- main.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flow/process.go b/flow/process.go index 1864147..4653f04 100644 --- a/flow/process.go +++ b/flow/process.go @@ -10,7 +10,7 @@ import ( "github.com/dlclark/regexp2" "github.com/google/go-github/v57/github" - "github.com/sakajunquality/flow/v4/gitbot" + "github.com/ubie-oss/flow/v4/gitbot" ) type PullRequests []PullRequest diff --git a/go.mod b/go.mod index 02bfb74..2df8ee1 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/sakajunquality/flow/v4 +module github.com/ubie-oss/flow/v4 require ( github.com/GoogleCloudPlatform/berglas v1.0.3 diff --git a/main.go b/main.go index f3a7175..40d96ce 100644 --- a/main.go +++ b/main.go @@ -13,7 +13,7 @@ import ( "github.com/go-chi/chi/v5/middleware" "github.com/go-chi/render" "github.com/sakajunquality/cloud-pubsub-events/gcrevent" - "github.com/sakajunquality/flow/v4/flow" + "github.com/ubie-oss/flow/v4/flow" "gopkg.in/yaml.v3"