From 7337d2352053c8001cc5a42926310d6ea75fb330 Mon Sep 17 00:00:00 2001 From: CeerDecy <79098669+CeerDecy@users.noreply.github.com> Date: Thu, 26 Sep 2024 14:56:24 +0800 Subject: [PATCH] feat: use docker build action (#91) * feat: build dual arch image * feat: update pipeline to support multi-arch build --- pipeline.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/pipeline.yml b/pipeline.yml index 223d203..bfb0103 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -19,12 +19,19 @@ stages: params: git_dir: ${{ dirs.erda-operator }} - stage: - - custom-script: - alias: build-erda-operator - commands: - - cd ${{ dirs.erda-operator }} - - docker login ${{ configs.docker_registry }} -u ${{ configs.docker_registry_username }} -p ${{ configs.docker_registry_password }} - - REGISTRY=${{ configs.docker_registry }} IMAGE_TAG=${{ outputs.extract-repo-version.image_tag }} make docker-build-push - resources: - cpu: 2 - mem: 2048 \ No newline at end of file + - dockerfile: + alias: dockerfile + version: "1.0" + params: + build_args: + GO_PROJECT_ROOT: "github.com/erda-project/erda" + GO_PROXY: "https://goproxy.cn,direct" + image: + name: erda-operator + tag: ${{ outputs.extract-repo-version.image_tag }} + path: ${{ dirs.erda-operator }}/Dockerfile + registry: + password: ${{ configs.docker_registry_password }} + url: ${{ configs.docker_registry }} + username: ${{ configs.docker_registry_username }} + workdir: ${{ dirs.erda-operator }}