From f2359dc5af77c5c10038310fbe29e068024b510f Mon Sep 17 00:00:00 2001 From: dustinxie Date: Tue, 21 Feb 2023 09:00:06 -0800 Subject: [PATCH 1/4] update code owner (#3811) --- .github/CODEOWNERS | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 009648767d..e9beb0b2ac 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -5,19 +5,19 @@ * @iotexproject/protocol-team #Specific owners -/consensus/ @CoderZhi -/ioctl/ @CoderZhi -/api/ @Liuhaai @millken @CoderZhi -/config/ @dustinxie @CoderZhi -/p2p/ @Liuhaai @dustinxie -/action/ @CoderZhi @dustinxie -/blockchain/ @CoderZhi @dustinxie -/blockindex/ @CoderZhi @dustinxie -/crypto/ @CoderZhi @dustinxie +/consensus/ @CoderZhi @dustinxie @Liuhaai +/ioctl/ @CoderZhi @dustinxie @Liuhaai +/api/ @CoderZhi @dustinxie @Liuhaai @millken +/config/ @CoderZhi @dustinxie @Liuhaai @envestcc +/p2p/ @CoderZhi @dustinxie @Liuhaai @envestcc +/action/ @CoderZhi @dustinxie @Liuhaai +/blockchain/ @CoderZhi @dustinxie @Liuhaai +/blockindex/ @CoderZhi @dustinxie @Liuhaai +/crypto/ @CoderZhi @dustinxie @Liuhaai /db/ @CoderZhi @dustinxie @Liuhaai -/dispatcher/ @CoderZhi @dustinxie -/pkg/ @dustinxie -/server/ @CoderZhi @dustinxie -/state/ @CoderZhi @dustinxie -/actpool/ @CoderZhi @Liuhaai -/.github/workflows @dustinxie @xianhuawei +/dispatcher/ @CoderZhi @dustinxie @Liuhaai @envestcc +/pkg/ @CoderZhi @dustinxie @Liuhaai +/server/ @CoderZhi @dustinxie @Liuhaai +/state/ @CoderZhi @dustinxie @Liuhaai +/actpool/ @CoderZhi @dustinxie @Liuhaai +/.github/workflows @CoderZhi @dustinxie @Liuhaai @xianhuawei From d12376b571abb379c24067808e12f504915abd6d Mon Sep 17 00:00:00 2001 From: xianhuawei <258022429@qq.com> Date: Wed, 22 Feb 2023 08:13:16 +0800 Subject: [PATCH 2/4] Delete ghcr.yaml --- .github/workflows/ghcr.yaml | 65 ------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 .github/workflows/ghcr.yaml diff --git a/.github/workflows/ghcr.yaml b/.github/workflows/ghcr.yaml deleted file mode 100644 index 14378e0d5e..0000000000 --- a/.github/workflows/ghcr.yaml +++ /dev/null @@ -1,65 +0,0 @@ -name: build image to ghcr - -on: - push: - tags: - - '*' - -env: - GO111MODULE: on - IMAGE: iotexproject/iotex-core - - -jobs: - ghcr: - runs-on: ubuntu-latest - permissions: - packages: write - contents: read - steps: - - uses: actions/checkout@v3 - - name: Setup Go - uses: actions/setup-go@v3 - with: - go-version: 1.18.5 - cache: true - - - name: Cache Docker layers - uses: actions/cache@v2 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx - restore-keys: | - ${{ runner.os }}-buildx - - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v1 - - - name: Log in to the Container registry - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Extract metadata for Docker - id: meta - uses: docker/metadata-action@v3 - with: - images: ghcr.io/${{ env.IMAGE }} - - - name: Build and push - uses: docker/build-push-action@v2 - with: - builder: ${{ steps.buildx.outputs.name }} - platforms: linux/amd64,linux/arm64 - #platforms: linux/amd64,linux/arm64,linux/s390x,linux/arm/v7,linux/arm/v6 - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache From ec74f081a926aa528b4778e3bf5e1de12ec52e5f Mon Sep 17 00:00:00 2001 From: xianhuawei <258022429@qq.com> Date: Wed, 22 Feb 2023 08:13:36 +0800 Subject: [PATCH 3/4] Delete deploy.yaml.bak --- .github/workflows/deploy.yaml.bak | 94 ------------------------------- 1 file changed, 94 deletions(-) delete mode 100644 .github/workflows/deploy.yaml.bak diff --git a/.github/workflows/deploy.yaml.bak b/.github/workflows/deploy.yaml.bak deleted file mode 100644 index cfebab1ad2..0000000000 --- a/.github/workflows/deploy.yaml.bak +++ /dev/null @@ -1,94 +0,0 @@ -name: deploy to k8s cluster - -on: - workflow_dispatch: - inputs: - version: - description: 'which version to deploy' - required: true - cluster: - description: 'which cluster to deploy' - required: true - type: choice - options: - - testnet - - mainnet - - nightly - push: - tags: - - 'v*' - -permissions: - contents: read - pull-requests: read - packages: write - id-token: write - -env: - PROJECT_ID: iotex-servers - GKE_CLUSTER: iotex-testnet-gcp - GKE_ZONE: us-west1-a - -jobs: - deploy: - #if: contains(join(toJson(github.event.pull_request.labels.*.name)), 'ready-for-deploy') - name: deploy to gke - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Docker meta - id: meta - uses: docker/metadata-action@v3 - with: - images: | - iotex/iotex-core - tags: | - type=ref,event=branch - type=ref,event=pr - type=ref,event=tag - type=semver,pattern={{raw}} - - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v2 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - - - id: 'auth' - name: 'Authenticate to Google Cloud' - uses: 'google-github-actions/auth@v0' - with: - credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}' - - - name: Set up GKE credentials - uses: google-github-actions/get-gke-credentials@v0 - with: - cluster_name: ${{ env.GKE_CLUSTER }} - location: ${{ env.GKE_ZONE }} - - - name: Deploy - run: |- - echo "${GITHUB_REF_NAME}" - - echo "${{ github.event.inputs.version }}" - echo "${{ github.event.inputs.cluster }}" - - kubectl patch statefulset iotex-delegate -p '{"spec": {"template": {"spec":{"containers":[{"name": "delegate", "image":"${GITHUB_REF_NAME}"}]}}}}' - - kubectl rollout status statefulset iotex-delegate \ No newline at end of file From fba0ef9fa12bda62abc3095527462f10dabe2ed1 Mon Sep 17 00:00:00 2001 From: xianhuawei <258022429@qq.com> Date: Thu, 2 Mar 2023 11:08:12 +0800 Subject: [PATCH 4/4] fix issues 3819 limit auto-release to official numerical tag #3819 --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8a87cab8c6..077d1243e8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -3,7 +3,7 @@ name: Release on: push: tags: - - "v*" + - "v[0-9]+.[0-9]+.[0-9]+" jobs: build: