From 33e6ba5c861943537546b14970c2ac351d719333 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Wed, 15 Jun 2022 15:27:45 +0200 Subject: [PATCH 1/6] Brings back circleci from the previous honestica/gotty --- .circleci/config.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..7663c43 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,22 @@ +version: 2 +jobs: + build: + docker: + - image: circleci/python:3 + steps: + - checkout + - setup_remote_docker: + docker_layer_caching: true + - run: + name: Build Gotty Image + command: | + DOCKER_TAG=$CIRCLE_BRANCH-$CIRCLE_BUILD_NUM + docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD + docker build -t honestica/gotty:$DOCKER_TAG . + docker push honestica/gotty:$DOCKER_TAG +workflows: + version: 2 + build: + jobs: + - build: + context: org-global From 4247a9a87e25abe974a0241f517a2ab644c1631b Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Wed, 15 Jun 2022 15:28:09 +0200 Subject: [PATCH 2/6] No need for github workflows. We use circleci --- .github/workflows/main.yaml | 24 ------------------- .github/workflows/pre-release.yaml | 37 ------------------------------ 2 files changed, 61 deletions(-) delete mode 100644 .github/workflows/main.yaml delete mode 100644 .github/workflows/pre-release.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml deleted file mode 100644 index 177e36c..0000000 --- a/.github/workflows/main.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: Go - -on: - - push - -jobs: - - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.16 - - - name: Test - run: make test - - - name: Build - run: make tools cross_compile diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml deleted file mode 100644 index 8e2748f..0000000 --- a/.github/workflows/pre-release.yaml +++ /dev/null @@ -1,37 +0,0 @@ ---- -name: "pre-release" - -on: - push: - branches: - - "master" - - -jobs: - pre-release: - name: "Pre Release" - runs-on: "ubuntu-latest" - - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.16 - - - - name: "Build & test" - run: "make tools release-artifacts" - - - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest" - prerelease: true - title: "Development Build" - files: | - LICENSE - builds/dist/* \ No newline at end of file From fe50e22be6e893f5540edaf9603ddc85d2c38566 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Wed, 15 Jun 2022 15:28:50 +0200 Subject: [PATCH 3/6] Fix missing npm package install Waiting for https://github.com/sorenisanerd/gotty/pull/38 --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 565e142..72cd110 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM golang:1.16 WORKDIR /gotty COPY . /gotty +RUN apt-get update && apt-get install -y nodejs npm RUN CGO_ENABLED=0 make FROM alpine:latest From 811c37a804f1f293b204f3950c54f7343b576667 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Wed, 15 Jun 2022 15:32:51 +0200 Subject: [PATCH 4/6] Import CODEOWNERS from honestica/gotty --- CODEOWNERS | 1 + 1 file changed, 1 insertion(+) create mode 100644 CODEOWNERS diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..5dc3a1b --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1 @@ +* @honestica/infra From 735b3cd3bdc4a1952a35aaa773fc6e6a48e169b3 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Wed, 15 Jun 2022 15:36:12 +0200 Subject: [PATCH 5/6] Docker image should reflects new fork name --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7663c43..9a2531d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,8 +12,8 @@ jobs: command: | DOCKER_TAG=$CIRCLE_BRANCH-$CIRCLE_BUILD_NUM docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD - docker build -t honestica/gotty:$DOCKER_TAG . - docker push honestica/gotty:$DOCKER_TAG + docker build -t honestica/gotty-v2:$DOCKER_TAG . + docker push honestica/gotty-v2:$DOCKER_TAG workflows: version: 2 build: From 99a783e69fe3deee231f618d2b713cb46176b039 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Thu, 16 Jun 2022 09:51:10 +0200 Subject: [PATCH 6/6] Tooling team is also owner of the project --- CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CODEOWNERS b/CODEOWNERS index 5dc3a1b..80e1c78 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1 @@ -* @honestica/infra +* @honestica/infra @honestica/tooling