Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions .github/workflows/publish_computer_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,28 @@ on:
default: 'hugegraph/hugegraph-computer-operator:latest'
manager_image_url:
required: true
default: 'hugegraph/hugegraph-computer-operator-manager:latest'
default: 'hugegraph/hugegraph-computer-operator-manager:latest'
# TODO: avoid to use the fixed version
version:
required: true
default: '1.2.0'
description: 'the current release version'
docker_registry_url:
required: false
default: ''
maven_args:
required: false
default: ''
description: 'mvn build args, like "-P stage"'

env:
repository_url: apache/hugegraph-computer
repository_branch: master
computer_image_url: hugegraph/hugegraph-computer:latest
operator_image_url: hugegraph/hugegraph-computer-operator:latest
docker_registry_url: ""
version: 1.2.0
docker_registry_url: ''
maven_args: ''

jobs:
build:
Expand All @@ -43,7 +55,9 @@ jobs:
echo "operator_image_url=${{ github.event.inputs.operator_image_url }}" >> $GITHUB_ENV
echo "manager_image_url=${{ github.event.inputs.manager_image_url }}" >> $GITHUB_ENV
echo "docker_registry_url=${{ github.event.inputs.docker_registry_url }}" >> $GITHUB_ENV

echo "maven_args=${{ github.event.inputs.maven_args }}" >> $GITHUB_ENV
echo "version=${{ github.event.inputs.version }}" >> $GITHUB_ENV

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -81,7 +95,7 @@ jobs:

- name: Package
run: |
mvn clean package -DskipTests
mvn clean package ${{ env.maven_args }} -DskipTests

- name: Build CRD
run: |
Expand All @@ -92,7 +106,7 @@ jobs:
- name: Build Computer Image
uses: docker/build-push-action@v5
with:
context: ./apache-hugegraph-computer-incubating-1.0.0
context: ./apache-hugegraph-computer-incubating-${{ env.version }}
file: ./computer-dist/Dockerfile
platforms: linux/amd64,linux/arm64
tags: ${{ env.computer_image_url }}
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/publish_latest_hubble_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ on:
schedule:
- cron: '0 23 * * *'
workflow_dispatch:

mvn_args:
required: false
default: ''
description: 'mvn build args, like "MAVEN_ARGS=-P stage"'

jobs:
build_latest:
runs-on: ubuntu-latest
Expand All @@ -16,6 +20,7 @@ jobs:
OWNER: hugegraph
REPO: actions
LAST_HUBBLE_HASH: ${{vars.LAST_HUBBLE_HASH}}
MVN_ARGS: ${{inputs.mvn_args}}

steps:
- name: Set up Docker Buildx
Expand Down Expand Up @@ -60,6 +65,7 @@ jobs:
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: ${{ env.MVN_ARGS }}

- name: Updata last commit-hash
if: ${{ env.NEED_UPDATE == 'true' }}
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/publish_latest_loader_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ on:
schedule:
- cron: '0 23 * * *'
workflow_dispatch:

mvn_args:
required: false
default: ''
description: 'mvn build args, like "MAVEN_ARGS=-P stage"'

jobs:
build_latest:
runs-on: ubuntu-latest
Expand All @@ -16,7 +20,8 @@ jobs:
OWNER: hugegraph
REPO: actions
LAST_LOADER_HASH: ${{vars.LAST_LOADER_HASH}}

MVN_ARGS: ${{inputs.mvn_args}}

steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -60,6 +65,7 @@ jobs:
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: ${{ env.MVN_ARGS }}

- name: Updata last commit-hash
if: ${{ env.NEED_UPDATE == 'true' }}
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/publish_latest_server_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ on:
schedule:
- cron: '0 23 * * *'
workflow_dispatch:

mvn_args:
required: false
default: ''
description: 'mvn build args, like "MAVEN_ARGS=-P stage"'

jobs:
build_latest:
runs-on: ubuntu-latest
Expand All @@ -16,7 +20,8 @@ jobs:
OWNER: hugegraph
REPO: actions
LAST_SERVER_HASH: ${{vars.LAST_SERVER_HASH}}

MVN_ARGS: ${{inputs.mvn_args}}

steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down Expand Up @@ -59,6 +64,7 @@ jobs:
tags: ${{ env.IMAGE_URL }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: ${{ env.MVN_ARGS }}

- name: Test X86 Image
if: ${{ env.NEED_UPDATE == 'true' }}
Expand All @@ -83,6 +89,7 @@ jobs:
tags: ${{ env.IMAGE_URL }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: ${{ env.MVN_ARGS }}

- name: Updata last commit-hash
if: ${{ env.NEED_UPDATE == 'true' }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/publish_release_hubble_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ on:
required: true
default: ''
description: 'The branch name should be like *-x.x.x, for example release-1.0.0'
mvn_args:
required: false
default: ''
description: 'mvn build args, like "MAVEN_ARGS=-P stage"'

jobs:
build_latest:
runs-on: ubuntu-latest
env:
REPOSITORY_URL: apache/hugegraph-toolchain
BRANCH: ${{inputs.branch}}
MVN_ARGS: ${{inputs.mvn_args}}

steps:
- name: Set image_url
Expand Down Expand Up @@ -46,3 +51,4 @@ jobs:
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: ${{ env.MVN_ARGS }}
6 changes: 6 additions & 0 deletions .github/workflows/publish_release_loader_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ on:
required: true
default: ''
description: 'The branch name should be like *-x.x.x, for example release-1.0.0'
mvn_args:
required: false
default: ''
description: 'mvn build args, like "MAVEN_ARGS=-P stage"'

jobs:
build_latest:
runs-on: ubuntu-latest
env:
REPOSITORY_URL: apache/hugegraph-toolchain
BRANCH: ${{inputs.branch}}
MVN_ARGS: ${{inputs.mvn_args}}

steps:
- name: Set image_url
Expand Down Expand Up @@ -46,3 +51,4 @@ jobs:
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: ${{ env.MVN_ARGS }}
6 changes: 6 additions & 0 deletions .github/workflows/publish_release_server_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ on:
required: true
default: ''
description: 'The branch name should be like *-x.x.x, for example release-1.0.0'
mvn_args:
required: false
default: ''
description: 'mvn build args, like "MAVEN_ARGS=-P stage"'

jobs:
build_latest:
runs-on: ubuntu-latest
env:
REPOSITORY_URL: apache/hugegraph
BRANCH: ${{inputs.branch}}
MVN_ARGS: ${{inputs.mvn_args}}

steps:
- name: Set image_url
Expand Down Expand Up @@ -67,3 +72,4 @@ jobs:
tags: ${{ env.image_url }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: ${{ env.MVN_ARGS }}