Skip to content

Commit 0c5bec5

Browse files
committed
Use create and add badge for build and deploy
1 parent 62aed3f commit 0c5bec5

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/docker.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
name: Build and Push Image
22

33
# Controls when the action will run.
4-
on:
5-
push:
6-
branches:
7-
- "!*"
8-
tags:
9-
- "v*"
4+
on:
5+
create
106

117
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
128
jobs:

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![CI](https://github.com/mansong1/rust-api/actions/workflows/ci.yml/badge.svg)](https://github.com/mansong1/rust-api/actions/workflows/ci.yml)
2-
2+
[![Build and Push Image](https://github.com/mansong1/rust-api/actions/workflows/docker.yml/badge.svg)](https://github.com/mansong1/rust-api/actions/workflows/docker.yml)
33
# rust-api
44

55
Simple api written in rust using actix-web

0 commit comments

Comments
 (0)