From 1e76aac5d8e6c6e24a3153b21149e4f925c10ea9 Mon Sep 17 00:00:00 2001 From: yixinglu <2520865+yixinglu@users.noreply.github.com> Date: Sat, 13 Jan 2024 09:14:23 +0800 Subject: [PATCH 1/2] Only build centos7/ubuntu2004 docker images --- .github/workflows/docker.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 4987fd9..827cdbb 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,5 +1,5 @@ name: docker -on: +on: push: branches: - master @@ -18,9 +18,9 @@ jobs: matrix: os: - {"name": "centos7", "file": "centos7"} - - {"name": "centos8", "file": "centos8"} - - {"name": "ubuntu1604", "version": "xenial", "file": "ubuntu"} - - {"name": "ubuntu1804", "version": "bionic", "file": "ubuntu"} + # - {"name": "centos8", "file": "centos8"} + # - {"name": "ubuntu1604", "version": "xenial", "file": "ubuntu"} + # - {"name": "ubuntu1804", "version": "bionic", "file": "ubuntu"} - {"name": "ubuntu2004", "version": "focal", "file": "ubuntu"} steps: - uses: actions/checkout@v3 @@ -28,6 +28,11 @@ jobs: with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - uses: docker/login-action@v2 + with: + registry: ${{ secrets.HARBOR_REGISTRY }} + username: ${{ secrets.HARBOR_USERNAME }} + password: ${{ secrets.HARBOR_PASSWORD }} - uses: docker/setup-qemu-action@v2 - uses: docker/setup-buildx-action@v2 - uses: docker/build-push-action@v4 @@ -35,6 +40,8 @@ jobs: context: . file: ./Dockerfile.${{ matrix.os.file }} platforms: linux/amd64,linux/arm64 - tags: vesoft/nebula-dev:${{ matrix.os.name }} + tags: | + vesoft/nebula-dev:${{ matrix.os.name }} + ${{ secrets.HARBOR_REGISTRY }}/vesoft/nebula-dev:${{ matrix.os.name }} push: true build-args: VERSION=${{ matrix.os.version }} From d870ae7743eb283464c4925b8d864b7592b8e4e6 Mon Sep 17 00:00:00 2001 From: Yee <2520865+yixinglu@users.noreply.github.com> Date: Sun, 4 Feb 2024 11:50:07 +0800 Subject: [PATCH 2/2] Update docker.yml --- .github/workflows/docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 827cdbb..ef2b5e3 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -18,7 +18,7 @@ jobs: matrix: os: - {"name": "centos7", "file": "centos7"} - # - {"name": "centos8", "file": "centos8"} + - {"name": "centos8", "file": "centos8"} # - {"name": "ubuntu1604", "version": "xenial", "file": "ubuntu"} # - {"name": "ubuntu1804", "version": "bionic", "file": "ubuntu"} - {"name": "ubuntu2004", "version": "focal", "file": "ubuntu"}