Skip to content

Commit c57cdb1

Browse files
committed
ci: Push to docker registry on creating tag
1 parent 6adac26 commit c57cdb1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: ci
2-
on: [push, pull_request, release]
2+
on:
3+
push:
4+
pull_request:
5+
create:
6+
tags: '*'
7+
38
jobs:
49
build:
510
name: Build
@@ -25,5 +30,5 @@ jobs:
2530
- name: Push the release Docker image
2631
run: |
2732
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
28-
VERSION=$GITHUB_REF_NAME make build.push
29-
if: github.event_name == 'release'
33+
VERSION=${{ github.ref_name }} make build.push
34+
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)