From 40d8ceec6390948ec3a05e650f4685750003f50a Mon Sep 17 00:00:00 2001 From: He Wang Date: Thu, 20 Jun 2024 11:16:57 +0800 Subject: [PATCH] chore: update used actions and modify test ci name (#9) --- .github/workflows/release-ob-configserver.yml | 10 +++++----- .github/workflows/release-obagent.yml | 10 +++++----- .github/workflows/release-obproxy-ce.yml | 14 +++++++------- .../workflows/release-oceanbase-cloud-native.yml | 10 +++++----- .../{ci-oceanbase-ce.yml => test-oceanbase-ce.yml} | 6 +++--- 5 files changed, 25 insertions(+), 25 deletions(-) rename .github/workflows/{ci-oceanbase-ce.yml => test-oceanbase-ce.yml} (91%) diff --git a/.github/workflows/release-ob-configserver.yml b/.github/workflows/release-ob-configserver.yml index de70487..94191c6 100644 --- a/.github/workflows/release-ob-configserver.yml +++ b/.github/workflows/release-ob-configserver.yml @@ -13,26 +13,26 @@ jobs: runs-on: ubuntu-latest steps: - name: Log in to Docker hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Set Version variables id: set_version_vars run: echo "version=$(echo $tagName | grep -P '(\d*\.\d*\.\d*-\d*)' --only-matching)" >> $GITHUB_OUTPUT - name: Build and push ob-configserver w/o cache - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: ./ob-configserver platforms: linux/amd64,linux/arm64 diff --git a/.github/workflows/release-obagent.yml b/.github/workflows/release-obagent.yml index 97273f5..b25e8fb 100644 --- a/.github/workflows/release-obagent.yml +++ b/.github/workflows/release-obagent.yml @@ -13,26 +13,26 @@ jobs: runs-on: ubuntu-latest steps: - name: Log in to Docker hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Set Version variables id: set_version_vars run: echo "version=$(echo $tagName | grep -P '(\d*\.\d*\.\d*-\d*)' --only-matching)" >> $GITHUB_OUTPUT - name: Build and push obagent w/o cache - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: ./obagent platforms: linux/amd64,linux/arm64 diff --git a/.github/workflows/release-obproxy-ce.yml b/.github/workflows/release-obproxy-ce.yml index d746eca..e8b8df6 100644 --- a/.github/workflows/release-obproxy-ce.yml +++ b/.github/workflows/release-obproxy-ce.yml @@ -3,36 +3,36 @@ name: release obproxy-ce on: push: tags: - - "obproxy-*" + - "obproxy-ce-*" env: tagName: ${{ github.ref_name }} jobs: - release-obproxy: + release-obproxy-ce: runs-on: ubuntu-latest steps: - name: Log in to Docker hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Set Version variables id: set_version_vars run: echo "version=$(echo $tagName | grep -P '(\d*\.\d*\.\d*\.\d*-\d*)' --only-matching)" >> $GITHUB_OUTPUT - name: Build and push obproxy w/o cache - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: ./obproxy-ce platforms: linux/amd64,linux/arm64 diff --git a/.github/workflows/release-oceanbase-cloud-native.yml b/.github/workflows/release-oceanbase-cloud-native.yml index 5155931..e68625f 100644 --- a/.github/workflows/release-oceanbase-cloud-native.yml +++ b/.github/workflows/release-oceanbase-cloud-native.yml @@ -13,26 +13,26 @@ jobs: runs-on: ubuntu-latest steps: - name: Log in to Docker hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Set Version variables id: set_version_vars run: echo "version=$(echo $tagName | grep -P '(\d*\.\d*\.\d*\.\d*-\d{18})' --only-matching)" >> $GITHUB_OUTPUT - name: Build and push observer w/o cache - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: ./oceanbase-cloud-native platforms: linux/amd64,linux/arm64 diff --git a/.github/workflows/ci-oceanbase-ce.yml b/.github/workflows/test-oceanbase-ce.yml similarity index 91% rename from .github/workflows/ci-oceanbase-ce.yml rename to .github/workflows/test-oceanbase-ce.yml index de73e7b..2e83f3a 100644 --- a/.github/workflows/ci-oceanbase-ce.yml +++ b/.github/workflows/test-oceanbase-ce.yml @@ -1,13 +1,13 @@ -name: oceanbase-ce +name: test oceanbase-ce on: push: paths: - - '.github/workflows/ci-oceanbase-ce.yml' + - '.github/workflows/test-oceanbase-ce.yml' - 'oceanbase-ce/**' pull_request: paths: - - '.github/workflows/ci-oceanbase-ce.yml' + - '.github/workflows/test-oceanbase-ce.yml' - 'oceanbase-ce/**' jobs: