From 8cedd87310adafc2ed38094945f9c35b2653e655 Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Fri, 4 Oct 2024 18:47:23 -0700 Subject: [PATCH 1/8] feat: add install script and release pipeline Signed-off-by: Nianyu Shen --- .github/workflows/release.yaml | 41 ++++++++++++++ .gitignore | 46 ++++++++++++++++ .pre-commit-config.yaml | 34 ++++++++++++ Earthfile | 93 ++++++++++++++++++++++++++++++++ PE_VERSION | 1 + README.md | 8 ++- install.sh.tmpl | 40 ++++++++++++++ package/tar/install.sh | 10 ++++ package/tar/spectro-init.service | 14 +++++ package/tar/spectro-init.sh | 28 ++++++++++ 10 files changed, 314 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yaml create mode 100644 .gitignore create mode 100644 .pre-commit-config.yaml create mode 100644 Earthfile create mode 100644 PE_VERSION create mode 100644 install.sh.tmpl create mode 100755 package/tar/install.sh create mode 100644 package/tar/spectro-init.service create mode 100755 package/tar/spectro-init.sh diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..80ca7c0 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,41 @@ +name: Release + +on: + push: + tags: + - v* + +permissions: + contents: write + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@master + with: + platforms: all + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@master + - name: Install earthly + uses: earthly/actions-setup@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + version: "latest" + use-cache: true + - name: Run Release target + run: earthly --ci --output +release + - name: Upload artifacts + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + set -ex + gh release upload ${{ github.ref }} build/* diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..44af965 --- /dev/null +++ b/.gitignore @@ -0,0 +1,46 @@ +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib +bin/* +.netrc + +# custom arg files +*.arg + +# env files +*.env + +# Test binary, build with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + + +vendor +!vendor/**/zz_generated.* + +# editor and IDE paraphernalia +.idea +*.swp +*.swo +*~ +a + +# cred file for docker build +.netrc +_build +.scannerwork +.fossa.yml +.DS_Store +.temp +local + +outputs/ +build/* +*_local* +*__debug_bin* +*.vscode* diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..ad94517 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,34 @@ +# install pre-commit on your system and then +# run pre-commit install in this repository. +# You can by pass commit hooks with: +# git commit -n +repos: + - repo: https://github.com/compilerla/conventional-pre-commit + rev: v2.4.0 + hooks: + - id: conventional-pre-commit + stages: [commit-msg] + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: check-yaml + stages: [commit] + - id: check-json + stages: [commit] + - id: check-toml + stages: [commit] + - id: check-merge-conflict + stages: [commit] + - id: check-case-conflict + stages: [commit] + - id: detect-private-key + stages: [commit] + - repo: https://github.com/crate-ci/typos + rev: v1.24.5 + hooks: + - id: typos + - repo: https://github.com/compilerla/conventional-pre-commit + rev: v2.4.0 + hooks: + - id: conventional-pre-commit + stages: [commit-msg] diff --git a/Earthfile b/Earthfile new file mode 100644 index 0000000..05f8824 --- /dev/null +++ b/Earthfile @@ -0,0 +1,93 @@ +VERSION 0.8 + +ARG --global SPECTRO_PUB_REPO=us-docker.pkg.dev/palette-images +ARG --global UBUNTU_IMAGE=${SPECTRO_PUB_REPO}/third-party/ubuntu:22.04 +FROM ${UBUNTU_IMAGE} + +release: + BUILD +package-tar \ + --PLATFORM=linux \ + --ARCH=amd64 \ + --ARCH=arm64 + + BUILD +palette-agent \ + --PLATFORM=linux \ + --ARCH=amd64 \ + --ARCH=arm64 + +ubuntu: + FROM ${UBUNTU_IMAGE} + RUN apt-get update && apt-get install -y systemctl gettext-base + COPY PE_VERSION PE_VERSION + +stylus-image: + ARG PLATFORM=linux + ARG ARCH=amd64 + ARG STYLUS_IMAGE + FROM --platform=$PLATFORM/$ARCH $STYLUS_IMAGE + SAVE ARTIFACT --keep-own ./* + +palette-agent: + FROM +ubuntu + + ARG VERSION=$(head -n 1 PE_VERSION) + ARG PLATFORM=linux + ARG ARCH=amd64 + ARG STYLUS_IMAGE=${SPECTRO_PUB_REPO}/edge/stylus-agent-mode-${PLATFORM}-${ARCH}:${VERSION} + + WORKDIR /workdir + COPY (+stylus-image/opt/spectrocloud/bin/palette-agent --PLATFORM=${PLATFORM} --ARCH=${ARCH} --STYLUS_IMAGE=${STYLUS_IMAGE}) /workdir/ + RUN chmod +x /workdir/palette-agent + + SAVE ARTIFACT --keep-own /workdir/palette-agent AS LOCAL ./build/palette-agent-${VERSION}-${PLATFORM}-${ARCH} + +package-tar: + FROM +ubuntu + + ARG VERSION=$(head -n 1 PE_VERSION) + ARG PLATFORM=linux + ARG ARCH=amd64 + ARG STYLUS_IMAGE=${SPECTRO_PUB_REPO}/edge/stylus-agent-mode-${PLATFORM}-${ARCH}:${VERSION} + ARG TAR_NAME=agent-mode-${VERSION}-${PLATFORM}-${ARCH} + + WORKDIR /workdir/var/lib/spectro + COPY (+stylus-image/ --PLATFORM=${PLATFORM} --ARCH=${ARCH} --STYLUS_IMAGE=${STYLUS_IMAGE}) /workdir/var/lib/spectro/stylus + + COPY package/tar/spectro-init.service /etc/systemd/system/spectro-init.service + COPY package/tar/spectro-init.sh /workdir/var/lib/spectro/spectro-init.sh + RUN mkdir -p /workdir/etc/systemd/system + RUN cp -rfv /workdir/var/lib/spectro/stylus/etc/systemd/system/spectro* /etc/systemd/system/ + RUN cp -rfv /etc/systemd/system/spectro* /workdir/etc/systemd/system/ + + RUN for service in /etc/systemd/system/spectro*; do systemctl enable "$(basename "$service")"; done + + RUN mkdir -p /workdir/etc/systemd/system/multi-user.target.wants + RUN cp -rfv /etc/systemd/system/multi-user.target.wants/spectro* /workdir/etc/systemd/system/multi-user.target.wants/ + RUN mkdir -p /workdir/etc/systemd/system/local-fs.target.wants + RUN cp -rfv /etc/systemd/system/local-fs.target.wants/spectro* /workdir/etc/systemd/system/local-fs.target.wants/ + RUN mkdir -p /workdir/etc/systemd/system/sysinit.target.wants + RUN cp -rfv /etc/systemd/system/sysinit.target.wants/spectro* /workdir/etc/systemd/system/sysinit.target.wants/ + + RUN tar -cvf /${TAR_NAME}.tar -C /workdir . + + SAVE ARTIFACT /${TAR_NAME}.tar AS LOCAL ./build/ + +install-script: + FROM +ubuntu + + ARG VERSION=$(head -n 1 PE_VERSION) + ARG IMAGE_REPO=${SPECTRO_PUB_REPO}/edge + ARG AGENT_URL_PREFIX=https://github.com/spectrocloud/agent-mode/releases/latest/download + + ENV PE_VERSION=${VERSION} + ENV IMAGE_REPO=${IMAGE_REPO} + ENV AGENT_URL_PREFIX=${AGENT_URL_PREFIX} + + WORKDIR /workdir + COPY install.sh.tmpl /workdir/install.sh.tmpl + RUN envsubst '${PE_VERSION} ${IMAGE_REPO} ${AGENT_URL_PREFIX}' < /workdir/install.sh.tmpl > /workdir/install.sh + RUN chmod +x /workdir/install.sh + + SAVE ARTIFACT --keep-own /workdir/install.sh AS LOCAL ./build/install.sh + + diff --git a/PE_VERSION b/PE_VERSION new file mode 100644 index 0000000..83cc6d3 --- /dev/null +++ b/PE_VERSION @@ -0,0 +1 @@ +v4.5.0-rc4 \ No newline at end of file diff --git a/README.md b/README.md index 5aa7637..1c82f2a 100644 --- a/README.md +++ b/README.md @@ -1 +1,7 @@ -# agent-mode \ No newline at end of file +# agent-mode + +## Quick Start + +```bash +curl https://github.com/spectrocloud/agent-mode/releases/latest/download/install.sh | bash +``` diff --git a/install.sh.tmpl b/install.sh.tmpl new file mode 100644 index 0000000..15bc071 --- /dev/null +++ b/install.sh.tmpl @@ -0,0 +1,40 @@ +#!/bin/bash +set -e +# set -x + +# Get the platform architecture +ARCH=$(uname -m) +VERSION=${PE_VERSION} + +# Check the architecture and print the appropriate message +if [ "$ARCH" == "x86_64" ]; then + ARCH=amd64 +elif [ "$ARCH" == "aarch64" ] || [ "$ARCH" == "arm64" ]; then + ARCH=arm64 +else + echo "Unsupported architecture: $ARCH" +fi + +IMAGE=${IMAGE_REPO}/stylus-agent-mode-linux-${ARCH}:${VERSION} +URL=${AGENT_URL_PREFIX}/palette-agent-${VERSION}-linux-${ARCH} + +# Check if USER_DATA is provided +if [ -z "$USER_DATA" ]; then + echo "Error: USER_DATA environment variable must be provided." + exit 1 +fi + +# Check if USER_DATA is a local file and if it exists +if [[ "$USER_DATA" == /* ]] || [[ "$USER_DATA" == ./* ]] || [[ "$USER_DATA" == ~* ]]; then + if [ ! -f "$USER_DATA" ]; then + echo "Error: The specified config file '$USER_DATA' does not exist." + exit 1 + fi +fi + +# Download edge-agent +curl -v -L $URL -o palette-agent +chmod +x palette-agent + +# Install edge-agent with provided config +./palette-agent install --source $IMAGE --config "$USER_DATA" \ No newline at end of file diff --git a/package/tar/install.sh b/package/tar/install.sh new file mode 100755 index 0000000..27041d6 --- /dev/null +++ b/package/tar/install.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -e +# set -x # Uncomment for debugging + +unpack() { + TAR_FILE=$1 + tar -xvf $TAR_FILE -C / +} + +unpack $1 diff --git a/package/tar/spectro-init.service b/package/tar/spectro-init.service new file mode 100644 index 0000000..9854c61 --- /dev/null +++ b/package/tar/spectro-init.service @@ -0,0 +1,14 @@ +[Unit] +Description=Spectro Initialization +Before=local-fs.target spectro-edge-agent-bootstrap.service + +[Service] +ExecStart=/var/lib/spectro/spectro-init.sh +User=root +Group=root +Restart=on-failure` +RemainAfterExit=yes +RestartSec=5s + +[Install] +WantedBy=local-fs.target diff --git a/package/tar/spectro-init.sh b/package/tar/spectro-init.sh new file mode 100755 index 0000000..2899482 --- /dev/null +++ b/package/tar/spectro-init.sh @@ -0,0 +1,28 @@ +#!/bin/bash +set -ex +if [ -f /etc/spectro/environment ]; then + . /etc/spectro/environment +fi + +SENTINEL_FILE="${STYLUS_ROOT}/opt/spectrocloud/state/setup_done" + +if [ -f ${SENTINEL_FILE} ]; then + echo "Setup already done" + exit +fi + +export PATH=$PATH:/var/lib/spectro/stylus/opt/spectrocloud/bin +edge-agent install --source dir:/var/lib/spectro/stylus --config /var/lib/spectro/userdata + +# reload the environment on first boot +if [ -f /etc/spectro/environment ]; then + . /etc/spectro/environment +fi + +touch ${SENTINEL_FILE} +systemctl daemon-reload +systemctl restart spectro-edge-agent-start || true +systemctl restart spectro-edge-agent-initramfs || true +systemctl restart spectro-edge-agent-boot || true +systemctl restart spectro-edge-agent-network || true +systemctl restart spectro-edge-agent-bootstrap || true From c363bca01bd1dd81a9f020f7710690e050ab72f5 Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Fri, 4 Oct 2024 18:49:05 -0700 Subject: [PATCH 2/8] ci: add install-script to release target Signed-off-by: Nianyu Shen --- Earthfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Earthfile b/Earthfile index 05f8824..70b682f 100644 --- a/Earthfile +++ b/Earthfile @@ -15,6 +15,8 @@ release: --ARCH=amd64 \ --ARCH=arm64 + BUILD +install-script + ubuntu: FROM ${UBUNTU_IMAGE} RUN apt-get update && apt-get install -y systemctl gettext-base From 572ffc45862615ed4b46ea7946758f91fb9b4a43 Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Fri, 4 Oct 2024 21:27:18 -0700 Subject: [PATCH 3/8] remove version from binary and package name Signed-off-by: Nianyu Shen --- Earthfile | 4 ++-- package/tar/spectro-init.service | 4 ++-- package/tar/spectro-init.sh | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Earthfile b/Earthfile index 70b682f..6e5b962 100644 --- a/Earthfile +++ b/Earthfile @@ -41,7 +41,7 @@ palette-agent: COPY (+stylus-image/opt/spectrocloud/bin/palette-agent --PLATFORM=${PLATFORM} --ARCH=${ARCH} --STYLUS_IMAGE=${STYLUS_IMAGE}) /workdir/ RUN chmod +x /workdir/palette-agent - SAVE ARTIFACT --keep-own /workdir/palette-agent AS LOCAL ./build/palette-agent-${VERSION}-${PLATFORM}-${ARCH} + SAVE ARTIFACT --keep-own /workdir/palette-agent AS LOCAL ./build/palette-agent-${PLATFORM}-${ARCH} package-tar: FROM +ubuntu @@ -50,7 +50,7 @@ package-tar: ARG PLATFORM=linux ARG ARCH=amd64 ARG STYLUS_IMAGE=${SPECTRO_PUB_REPO}/edge/stylus-agent-mode-${PLATFORM}-${ARCH}:${VERSION} - ARG TAR_NAME=agent-mode-${VERSION}-${PLATFORM}-${ARCH} + ARG TAR_NAME=agent-mode-${PLATFORM}-${ARCH} WORKDIR /workdir/var/lib/spectro COPY (+stylus-image/ --PLATFORM=${PLATFORM} --ARCH=${ARCH} --STYLUS_IMAGE=${STYLUS_IMAGE}) /workdir/var/lib/spectro/stylus diff --git a/package/tar/spectro-init.service b/package/tar/spectro-init.service index 9854c61..ec1a4b3 100644 --- a/package/tar/spectro-init.service +++ b/package/tar/spectro-init.service @@ -1,12 +1,12 @@ [Unit] Description=Spectro Initialization -Before=local-fs.target spectro-edge-agent-bootstrap.service +Before=local-fs.target spectro-palette-agent-bootstrap.service [Service] ExecStart=/var/lib/spectro/spectro-init.sh User=root Group=root -Restart=on-failure` +Restart=on-failure RemainAfterExit=yes RestartSec=5s diff --git a/package/tar/spectro-init.sh b/package/tar/spectro-init.sh index 2899482..d5374bf 100755 --- a/package/tar/spectro-init.sh +++ b/package/tar/spectro-init.sh @@ -12,7 +12,7 @@ if [ -f ${SENTINEL_FILE} ]; then fi export PATH=$PATH:/var/lib/spectro/stylus/opt/spectrocloud/bin -edge-agent install --source dir:/var/lib/spectro/stylus --config /var/lib/spectro/userdata +palette-agent install --source dir:/var/lib/spectro/stylus --config /var/lib/spectro/userdata # reload the environment on first boot if [ -f /etc/spectro/environment ]; then @@ -21,8 +21,8 @@ fi touch ${SENTINEL_FILE} systemctl daemon-reload -systemctl restart spectro-edge-agent-start || true -systemctl restart spectro-edge-agent-initramfs || true -systemctl restart spectro-edge-agent-boot || true -systemctl restart spectro-edge-agent-network || true -systemctl restart spectro-edge-agent-bootstrap || true +systemctl restart spectro-palette-agent-start || true +systemctl restart spectro-palette-agent-initramfs || true +systemctl restart spectro-palette-agent-boot || true +systemctl restart spectro-palette-agent-network || true +systemctl restart spectro-palette-agent-bootstrap || true From 1d38e6d744d4a7058ba9308a6f7a9ea6096f6983 Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Fri, 4 Oct 2024 21:42:13 -0700 Subject: [PATCH 4/8] use action-gh-release Signed-off-by: Nianyu Shen --- .github/workflows/release.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 80ca7c0..f7a1270 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -2,8 +2,6 @@ name: Release on: push: - tags: - - v* permissions: contents: write @@ -33,9 +31,8 @@ jobs: use-cache: true - name: Run Release target run: earthly --ci --output +release - - name: Upload artifacts - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - set -ex - gh release upload ${{ github.ref }} build/* + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: build/* \ No newline at end of file From 36c8e1c90ead00dda26a4c0d3e73cd3dbf19c7de Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Fri, 4 Oct 2024 21:56:27 -0700 Subject: [PATCH 5/8] chore: update precommit hook Signed-off-by: Nianyu Shen --- .pre-commit-config.yaml | 8 ++++---- Earthfile | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ad94517..d12cf5f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,12 +4,12 @@ # git commit -n repos: - repo: https://github.com/compilerla/conventional-pre-commit - rev: v2.4.0 + rev: v3.4.0 hooks: - id: conventional-pre-commit stages: [commit-msg] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-yaml stages: [commit] @@ -24,11 +24,11 @@ repos: - id: detect-private-key stages: [commit] - repo: https://github.com/crate-ci/typos - rev: v1.24.5 + rev: v1.25.0 hooks: - id: typos - repo: https://github.com/compilerla/conventional-pre-commit - rev: v2.4.0 + rev: v3.4.0 hooks: - id: conventional-pre-commit stages: [commit-msg] diff --git a/Earthfile b/Earthfile index 6e5b962..941e08e 100644 --- a/Earthfile +++ b/Earthfile @@ -91,5 +91,3 @@ install-script: RUN chmod +x /workdir/install.sh SAVE ARTIFACT --keep-own /workdir/install.sh AS LOCAL ./build/install.sh - - From 839de5ac64ee1a4c7d0609778f3a213e6c2c78f2 Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Fri, 4 Oct 2024 22:11:11 -0700 Subject: [PATCH 6/8] docs: update readme with usage of install script Signed-off-by: Nianyu Shen --- README.md | 18 ++++++++++++++++++ install.sh.tmpl | 26 +++++++++----------------- 2 files changed, 27 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 1c82f2a..fb3666d 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,21 @@ ```bash curl https://github.com/spectrocloud/agent-mode/releases/latest/download/install.sh | bash ``` + +## Usage + +### specify userdata + +Userdata can be a URL or a file path. + +```bash +curl https://github.com/spectrocloud/agent-mode/releases/latest/download/install.sh | USERDATA=https://xxx/userdata bash +# or +curl https://github.com/spectrocloud/agent-mode/releases/latest/download/install.sh | USERDATA=/path/to/userdata bash +``` + +### specify palette version + +```bash +curl https://github.com/spectrocloud/agent-mode/releases/latest/download/install.sh | VERSION=v4.5.0 bash +``` diff --git a/install.sh.tmpl b/install.sh.tmpl index 15bc071..8ebaa57 100644 --- a/install.sh.tmpl +++ b/install.sh.tmpl @@ -9,7 +9,7 @@ VERSION=${PE_VERSION} # Check the architecture and print the appropriate message if [ "$ARCH" == "x86_64" ]; then ARCH=amd64 -elif [ "$ARCH" == "aarch64" ] || [ "$ARCH" == "arm64" ]; then +elif [ "$ARCH" == "aarch64" ] || [ "$ARCH" == "arm64" ]; then ARCH=arm64 else echo "Unsupported architecture: $ARCH" @@ -18,23 +18,15 @@ fi IMAGE=${IMAGE_REPO}/stylus-agent-mode-linux-${ARCH}:${VERSION} URL=${AGENT_URL_PREFIX}/palette-agent-${VERSION}-linux-${ARCH} -# Check if USER_DATA is provided -if [ -z "$USER_DATA" ]; then - echo "Error: USER_DATA environment variable must be provided." - exit 1 -fi - -# Check if USER_DATA is a local file and if it exists -if [[ "$USER_DATA" == /* ]] || [[ "$USER_DATA" == ./* ]] || [[ "$USER_DATA" == ~* ]]; then - if [ ! -f "$USER_DATA" ]; then - echo "Error: The specified config file '$USER_DATA' does not exist." - exit 1 - fi -fi - # Download edge-agent curl -v -L $URL -o palette-agent chmod +x palette-agent -# Install edge-agent with provided config -./palette-agent install --source $IMAGE --config "$USER_DATA" \ No newline at end of file +# Install with palette-agent +if [ -z "$USER_DATA" ]; then + # Install without user data + ./palette-agent install --source $IMAGE +else + # Install with user data + ./palette-agent install --source $IMAGE --config "$USER_DATA" +fi From 9d95cfc3f44d8b473eefad42e104259e7acc72c8 Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Fri, 4 Oct 2024 22:12:01 -0700 Subject: [PATCH 7/8] ci: add precommit github action Signed-off-by: Nianyu Shen --- .github/workflows/precommit.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/precommit.yaml diff --git a/.github/workflows/precommit.yaml b/.github/workflows/precommit.yaml new file mode 100644 index 0000000..18e7498 --- /dev/null +++ b/.github/workflows/precommit.yaml @@ -0,0 +1,14 @@ +name: pre-commit + +on: + pull_request: + push: + branches: [main] + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + - uses: pre-commit/action@v3.0.1 \ No newline at end of file From a0b95ccedcd96e00597e90f9b8dae5855e3e57f0 Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Fri, 4 Oct 2024 22:15:12 -0700 Subject: [PATCH 8/8] ci: remove duplicate pre-commit configs Signed-off-by: Nianyu Shen --- .pre-commit-config.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d12cf5f..1d44399 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,11 +3,6 @@ # You can by pass commit hooks with: # git commit -n repos: - - repo: https://github.com/compilerla/conventional-pre-commit - rev: v3.4.0 - hooks: - - id: conventional-pre-commit - stages: [commit-msg] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: