Skip to content

Commit

Permalink
Only build centos7/ubuntu2004 docker images (#79)
Browse files Browse the repository at this point in the history
* Only build centos7/ubuntu2004 docker images

* Update docker.yml
  • Loading branch information
yixinglu authored Feb 4, 2024
1 parent d7e097d commit 1a7ac87
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: docker
on:
on:
push:
branches:
- master
Expand All @@ -19,22 +19,29 @@ jobs:
os:
- {"name": "centos7", "file": "centos7"}
- {"name": "centos8", "file": "centos8"}
- {"name": "ubuntu1604", "version": "xenial", "file": "ubuntu"}
- {"name": "ubuntu1804", "version": "bionic", "file": "ubuntu"}
# - {"name": "ubuntu1604", "version": "xenial", "file": "ubuntu"}
# - {"name": "ubuntu1804", "version": "bionic", "file": "ubuntu"}
- {"name": "ubuntu2004", "version": "focal", "file": "ubuntu"}
steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v2
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
with:
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 }}

0 comments on commit 1a7ac87

Please sign in to comment.