Skip to content

Commit

Permalink
build docker image on tag (#387)
Browse files Browse the repository at this point in the history
Signed-off-by: zjgemi <liuxin_zijian@163.com>
  • Loading branch information
zjgemi committed Oct 21, 2023
1 parent e6d9660 commit 685bd07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Build docker image and push to Docker Hub

on:
push:
branches:
- master
tags:
- 'v*'

jobs:
build-n-push:
Expand All @@ -29,4 +29,4 @@ jobs:

- name: Build and push
run: |
docker buildx build --platform linux/arm64,linux/amd64 -t dptechnology/dpdispatcher:latest --push .
docker buildx build --platform linux/arm64,linux/amd64 -t dptechnology/dpdispatcher:${{ github.ref_name }} -t dptechnology/dpdispatcher:latest --push .

0 comments on commit 685bd07

Please sign in to comment.