Skip to content

Commit

Permalink
ci: Push to docker registry on creating tag
Browse files Browse the repository at this point in the history
  • Loading branch information
askoriy committed Nov 26, 2024
1 parent 6adac26 commit c57cdb1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: ci
on: [push, pull_request, release]
on:
push:
pull_request:
create:
tags: '*'

jobs:
build:
name: Build
Expand All @@ -25,5 +30,5 @@ jobs:
- name: Push the release Docker image
run: |
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
VERSION=$GITHUB_REF_NAME make build.push
if: github.event_name == 'release'
VERSION=${{ github.ref_name }} make build.push
if: startsWith(github.ref, 'refs/tags/')

0 comments on commit c57cdb1

Please sign in to comment.