Skip to content

Commit

Permalink
use semver auto resolving, add arm64 (#474)
Browse files Browse the repository at this point in the history
* use semver auto resolving, add arm64

* add arm64
  • Loading branch information
wey-gu authored Feb 22, 2023
1 parent 1de382e commit 8b186f6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 26 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,18 @@ jobs:
-
name: set track
run: bash ./scripts/setEventTracking.sh ${{ secrets.GA_ID }} ${{ secrets.CLARITY_ID }}
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Build
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
- name: Log into registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Build and push
uses: docker/build-push-action@v2
- name: Build and push Docker images
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
tags: vesoft/nebula-studio:nightly
push: true
tags: vesoft/nebula-graph-studio:nightly
41 changes: 28 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,38 @@ jobs:
-
name: set track
run: bash ./scripts/setEventTracking.sh ${{ secrets.GA_ID }} ${{ secrets.CLARITY_ID }}
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Build
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
- name: Checkout
uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
vesoft/nebula-studio
tags: |
# git tag & latest coverred
type=ref,event=tag
# git branch
type=ref,event=branch
# v3.0.0
type=semver,pattern=v{{version}}
# v3
type=semver,pattern=v{{major}}
# v3.0
type=semver,pattern=v{{major}}.{{minor}}
- name: Log into registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Build and push
uses: docker/build-push-action@v2
- name: Build and push Docker images
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: vesoft/nebula-graph-studio:v3.7.0
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 8b186f6

Please sign in to comment.