Skip to content

Commit

Permalink
migrate to the github
Browse files Browse the repository at this point in the history
  • Loading branch information
napalmpapalam committed Oct 24, 2023
1 parent 70c1423 commit 7576be3
Show file tree
Hide file tree
Showing 162 changed files with 465 additions and 550 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on:
workflow_dispatch:

jobs:
converge:
name: Converge
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install werf
uses: werf/actions/install@v1.2

- name: Log in to registry
# This is where you will update the personal access token to GITHUB_TOKEN
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: Run echo
run: |
werf version
docker version
echo $GITHUB_REPOSITORY
echo $GITHUB_SHA
- name: Run Build
run: |
. $(werf ci-env github --as-file)
werf export service --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA
33 changes: 33 additions & 0 deletions .github/workflows/actions_onlymain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
branches:
- 'main'

jobs:
converge:
name: Converge
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install werf
uses: werf/actions/install@v1.2

- name: Log in to registry
# This is where you will update the personal access token to GITHUB_TOKEN
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: Run echo
run: |
werf version
docker version
echo $GITHUB_REPOSITORY
echo $GITHUB_SHA
- name: Run Build
run: |
. $(werf ci-env github --as-file)
werf export service --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_SHA
33 changes: 33 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
converge:
name: Converge
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install werf
uses: werf/actions/install@v1.2

- name: Log in to registry
# This is where you will update the personal access token to GITHUB_TOKEN
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: Run echo
run: |
werf version
docker version
echo $GITHUB_REPOSITORY
echo $GITHUB_REF_NAME
- name: Run Build
run: |
. $(werf ci-env github --as-file)
werf export service --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME
175 changes: 0 additions & 175 deletions .gitlab-ci.yml

This file was deleted.

6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
FROM golang:1.20-alpine as buildbase

WORKDIR /go/src/gitlab.com/rarimo/bdjuno
WORKDIR /go/src/github.com/rarimo/bdjuno
RUN apk add build-base
COPY vendor .
COPY . .
ENV GO111MODULE="on"
ENV CGO_ENABLED=1
ENV GOOS="linux"
RUN go build -o /usr/local/bin/bdjuno gitlab.com/rarimo/bdjuno/cmd/bdjuno
RUN go mod tidy
RUN go mod vendor
RUN go build -o /usr/local/bin/bdjuno github.com/rarimo/bdjuno/cmd/bdjuno

###

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Forbole Ltd.
Copyright (c) 2023 Zero Block Global Foundation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# BDJuno
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/forbole/bdjuno/Tests)](https://github.com/forbole/bdjuno/actions?query=workflow%3ATests)
[![Go Report Card](https://goreportcard.com/badge/github.com/forbole/bdjuno)](https://goreportcard.com/report/github.com/forbole/bdjuno)
![Codecov branch](https://img.shields.io/codecov/c/github/forbole/bdjuno/cosmos/v0.40.x)

BDJuno (shorthand for BigDipper Juno) is the [Juno](https://github.com/forbole/juno) implementation
for [BigDipper](https://github.com/forbole/big-dipper).
Expand Down
14 changes: 7 additions & 7 deletions cmd/bdjuno/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import (
parsetypes "github.com/forbole/juno/v4/cmd/parse/types"
startcmd "github.com/forbole/juno/v4/cmd/start"
"github.com/forbole/juno/v4/modules/messages"
migratecmd "gitlab.com/rarimo/bdjuno/cmd/migrate"
parsecmd "gitlab.com/rarimo/bdjuno/cmd/parse"
"gitlab.com/rarimo/bdjuno/types/config"
migratecmd "github.com/rarimo/bdjuno/cmd/migrate"
parsecmd "github.com/rarimo/bdjuno/cmd/parse"
"github.com/rarimo/bdjuno/types/config"

"gitlab.com/rarimo/bdjuno/database"
"gitlab.com/rarimo/bdjuno/modules"
"github.com/rarimo/bdjuno/database"
"github.com/rarimo/bdjuno/modules"

migratedbcmd "gitlab.com/rarimo/bdjuno/cmd/migrate_db"
rarimoapp "gitlab.com/rarimo/rarimo-core/app"
migratedbcmd "github.com/rarimo/bdjuno/cmd/migrate_db"
rarimoapp "github.com/rarimo/rarimo-core/app"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/migrate/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types"
"github.com/spf13/cobra"

v3 "gitlab.com/rarimo/bdjuno/cmd/migrate/v3"
v3 "github.com/rarimo/bdjuno/cmd/migrate/v3"
)

type Migrator func(parseCfg *parsecmdtypes.Config) error
Expand Down
2 changes: 1 addition & 1 deletion cmd/migrate/v3/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"io/ioutil"

"gitlab.com/rarimo/bdjuno/modules/actions"
"github.com/rarimo/bdjuno/modules/actions"

parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types"

Expand Down
2 changes: 1 addition & 1 deletion cmd/migrate/v3/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package v3
import (
v4 "github.com/forbole/juno/v4/cmd/migrate/v4"

"gitlab.com/rarimo/bdjuno/modules/actions"
"github.com/rarimo/bdjuno/modules/actions"
)

type Config struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/migrate_db/migrate_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types"
"github.com/forbole/juno/v4/logging"
"github.com/forbole/juno/v4/types/config"
"github.com/rarimo/bdjuno/database"
migrate "github.com/rubenv/sql-migrate"
"github.com/spf13/cobra"
"gitlab.com/rarimo/bdjuno/database"
)

var migrations = &migrate.EmbedFileSystemMigrationSource{
Expand Down
6 changes: 3 additions & 3 deletions cmd/parse/auth/vesting.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/forbole/juno/v4/types/config"
"github.com/spf13/cobra"

"gitlab.com/rarimo/bdjuno/database"
authutils "gitlab.com/rarimo/bdjuno/modules/auth"
"gitlab.com/rarimo/bdjuno/utils"
"github.com/rarimo/bdjuno/database"
authutils "github.com/rarimo/bdjuno/modules/auth"
"github.com/rarimo/bdjuno/utils"
)

// vestingCmd returns a Cobra command that allows to fix the vesting data for the accounts
Expand Down
6 changes: 3 additions & 3 deletions cmd/parse/feegrant/allowance.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types"
"github.com/forbole/juno/v4/types/config"

"gitlab.com/rarimo/bdjuno/modules/feegrant"
"gitlab.com/rarimo/bdjuno/utils"
"github.com/rarimo/bdjuno/modules/feegrant"
"github.com/rarimo/bdjuno/utils"

"github.com/spf13/cobra"

"gitlab.com/rarimo/bdjuno/database"
"github.com/rarimo/bdjuno/database"

"sort"

Expand Down
Loading

0 comments on commit 7576be3

Please sign in to comment.