Skip to content

Commit

Permalink
feat: use docker build action (#91)
Browse files Browse the repository at this point in the history
* feat: build dual arch image

* feat: update pipeline to support multi-arch build
  • Loading branch information
CeerDecy authored Sep 26, 2024
1 parent f16ae12 commit 7337d23
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- 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 }}

0 comments on commit 7337d23

Please sign in to comment.