Skip to content

Commit

Permalink
CI docker build and push
Browse files Browse the repository at this point in the history
  • Loading branch information
wey-gu authored Sep 2, 2023
1 parent 2f57497 commit dd838e8
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Docker Image CI

on:
release:
types:
- published

jobs:

build:
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: Checkout
uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
weygu/nebulagraph-gephi-exchange
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 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 dd838e8

Please sign in to comment.