From 3c84692b40d762d4840e4933548aa06a46e64acc Mon Sep 17 00:00:00 2001 From: yusing Date: Wed, 11 Mar 2026 11:51:07 +0800 Subject: [PATCH] ci: add compat Docker image workflow Add a new GitHub Actions workflow for building Docker images with the "compat" tag on the compat branch. Also update the existing nightly workflow to only run on the compat branch instead of all branches. --- .github/workflows/docker-image-compat.yml | 25 ++++++++++++++++++++++ .github/workflows/docker-image-nightly.yml | 16 ++++++-------- 2 files changed, 31 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/docker-image-compat.yml diff --git a/.github/workflows/docker-image-compat.yml b/.github/workflows/docker-image-compat.yml new file mode 100644 index 00000000..34b1a33d --- /dev/null +++ b/.github/workflows/docker-image-compat.yml @@ -0,0 +1,25 @@ +name: Docker Image CI (nightly) + +on: + push: + branches: + - "*" # matches every branch that doesn't contain a '/' + - "*/*" # matches every branch containing a single '/' + - "**" # matches every branch + - "!dependabot/*" + - "!main" # excludes main + - "!compat" # excludes compat branch + +jobs: + build-nightly: + uses: ./.github/workflows/docker-image.yml + with: + image_name: ${{ github.repository_owner }}/godoxy + tag: nightly + target: main + build-nightly-agent: + uses: ./.github/workflows/docker-image.yml + with: + image_name: ${{ github.repository_owner }}/godoxy-agent + tag: nightly + target: agent diff --git a/.github/workflows/docker-image-nightly.yml b/.github/workflows/docker-image-nightly.yml index 20c5497d..40fea955 100644 --- a/.github/workflows/docker-image-nightly.yml +++ b/.github/workflows/docker-image-nightly.yml @@ -1,24 +1,20 @@ -name: Docker Image CI (nightly) +name: Docker Image CI (compat) on: push: branches: - - "*" # matches every branch that doesn't contain a '/' - - "*/*" # matches every branch containing a single '/' - - "**" # matches every branch - - "!dependabot/*" - - "!main" # excludes main + - "compat" # compat branch jobs: - build-nightly: + build-compat: uses: ./.github/workflows/docker-image.yml with: image_name: ${{ github.repository_owner }}/godoxy - tag: nightly + tag: compat target: main - build-nightly-agent: + build-compat-agent: uses: ./.github/workflows/docker-image.yml with: image_name: ${{ github.repository_owner }}/godoxy-agent - tag: nightly + tag: compat target: agent