Skip to content

Commit ed0cddf

Browse files
authored
refactor: rename to mc2mc (#41)
1 parent fcb4143 commit ed0cddf

File tree

23 files changed

+32
-32
lines changed

23 files changed

+32
-32
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
jobs:
10-
build-max2max:
10+
build-mc2mc:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
@@ -21,7 +21,7 @@ jobs:
2121
# Build the Go binary
2222
- name: Build
2323
run: |
24-
cd max2max
24+
cd mc2mc
2525
mkdir build
2626
go get .
27-
env GOOS=linux GOARCH=amd64 go build -o ./build/max2max .
27+
env GOOS=linux GOARCH=amd64 go build -o ./build/mc2mc .

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
tags:
66
- 'bq2bq/v*'
7-
- 'max2max/v*'
7+
- 'mc2mc/v*'
88

99
jobs:
1010
bq2bq:
@@ -42,8 +42,8 @@ jobs:
4242
docker.io/gotocompany/optimus-task-bq2bq-executor:${{ steps.vars.outputs.tag }}
4343
- name: Log out from Docker Hub
4444
run: docker logout
45-
max2max:
46-
if: startsWith(github.ref, 'refs/tags/max2max/v')
45+
mc2mc:
46+
if: startsWith(github.ref, 'refs/tags/mc2mc/v')
4747
runs-on: ubuntu-latest
4848
steps:
4949
- name: Checkout
@@ -57,10 +57,10 @@ jobs:
5757
# Build the Go binary
5858
- name: Build
5959
run: |
60-
cd max2max
60+
cd mc2mc
6161
mkdir build
6262
go get .
63-
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./build/max2max .
63+
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./build/mc2mc .
6464
- name: Login to DockerHub
6565
uses: docker/login-action@v1
6666
with:
@@ -71,20 +71,20 @@ jobs:
7171
- name: Extract tag version
7272
id: vars
7373
run: |
74-
# Extract the tag name from GITHUB_REF, remove 'refs/tags/max2max/v' prefix
75-
TAG="${GITHUB_REF#refs/tags/max2max/}"
74+
# Extract the tag name from GITHUB_REF, remove 'refs/tags/mc2mc/v' prefix
75+
TAG="${GITHUB_REF#refs/tags/mc2mc/}"
7676
TAG="${TAG#v}"
7777
echo "Tag name: $TAG"
7878
echo "::set-output name=tag::$TAG"
7979
# Build and push the Docker image to Docker Hub
8080
- name: Build and push Docker image
8181
uses: docker/build-push-action@v5
8282
with:
83-
context: ./max2max
83+
context: ./mc2mc
8484
platforms: linux/amd64 # Specify the target platforms
8585
push: true
8686
tags: |
87-
docker.io/gotocompany/max2max:latest
88-
docker.io/gotocompany/max2max:${{ steps.vars.outputs.tag }}
87+
docker.io/gotocompany/mc2mc:latest
88+
docker.io/gotocompany/mc2mc:${{ steps.vars.outputs.tag }}
8989
- name: Log out from Docker Hub
9090
run: docker logout

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
cd ./bq2bq
2525
chmod +x ./run_coverage.sh
2626
./run_coverage.sh
27-
max2max:
27+
mc2mc:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- name: Checkout
@@ -38,6 +38,6 @@ jobs:
3838
# Build the Go binary
3939
- name: Build
4040
run: |
41-
cd max2max
41+
cd mc2mc
4242
go get .
4343
go test ./...

max2max/Dockerfile

Lines changed: 0 additions & 6 deletions
This file was deleted.
File renamed without changes.

mc2mc/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM alpine:3
2+
3+
RUN apk --no-cache add tzdata
4+
COPY ./build/mc2mc /usr/local/bin/mc2mc
5+
6+
ENTRYPOINT ["/usr/local/bin/mc2mc"]

max2max/go.mod renamed to mc2mc/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/goto/transformers/max2max
1+
module github.com/goto/transformers/mc2mc
22

33
go 1.22.3
44

File renamed without changes.
File renamed without changes.

max2max/internal/client/client_test.go renamed to mc2mc/internal/client/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"os"
77
"testing"
88

9-
"github.com/goto/transformers/max2max/internal/client"
9+
"github.com/goto/transformers/mc2mc/internal/client"
1010
"github.com/stretchr/testify/assert"
1111
"github.com/stretchr/testify/require"
1212
)

0 commit comments

Comments
 (0)