Skip to content

Commit

Permalink
Docker Push with arm64 (#189)
Browse files Browse the repository at this point in the history
* Docker Push with arm64

- enable nightly docker build push
- us v3 and buildx for docker build in release with arm64

* removed duplicated tags line

* removed qumu
  • Loading branch information
wey-gu authored Dec 1, 2022
1 parent bfe9181 commit 62005c7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
name: build docker image
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log into registry
Expand All @@ -24,3 +22,4 @@ jobs:
with:
platforms: linux/amd64,linux/arm64
tags: vesoft/nebula-console/nightly, vesoft/nebula-console/v3-nightly
push: true
35 changes: 28 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,34 @@ jobs:
name: build docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build and push Docker images
uses: docker/build-push-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
vesoft/nebula-console
tags: |
# git tag & latest coverred
type=ref,event=tag
# git branch
type=ref,event=branch
# v3
type=semver,pattern=v{{version}}
# v3.0
type=semver,pattern=v{{major}}.{{minor}}
# v3.0.0
type=semver,pattern=v{{major}}.{{minor}}.{{patch}}
- name: Log into registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: vesoft/nebula-console
tags: v3,latest
tag_with_ref: true
add_git_labels: true
- name: Build and push Docker images
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 62005c7

Please sign in to comment.