Skip to content

Commit bce190c

Browse files
ci: add semantic pull request action
1 parent 42480d7 commit bce190c

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/docker-image.yml renamed to .github/workflows/release-docker.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci
1+
name: Build docker image
22

33
on:
44
push:
@@ -19,10 +19,14 @@ jobs:
1919
username: ${{ github.repository_owner }}
2020
password: ${{ secrets.GITHUB_TOKEN }}
2121

22+
- name: Get version
23+
id: get_version
24+
uses: battila7/get-version-action@v2
25+
2226
- name: Build and push
2327
id: docker_build
2428
uses: docker/build-push-action@v2
2529
with:
2630
push: true
2731
platforms: linux/amd64,linux/arm64
28-
tags: ghcr.io/tendermint/faucet:latest,ghcr.io/tendermint/faucet:${GITHUB_REF#refs/*/}
32+
tags: ghcr.io/tendermint/faucet:latest,ghcr.io/tendermint/faucet:${{ steps.get_version.outputs.version-without-v }}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Semantic PR"
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
- edited
7+
- synchronize
8+
jobs:
9+
main:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: amannn/action-semantic-pull-request@v1.2.0
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)