Skip to content

Commit

Permalink
Only publish Docker image on new release
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusstefan committed Nov 14, 2024
1 parent 23b954c commit dd70eb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker-push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ name: Push OpenSIPS Python Images in Docker Hub

on:
push:
repository_dispatch:
workflow_dispatch:

jobs:

build:

runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') # only publish to Docker Hub on tag pushes

steps:
- uses: actions/checkout@v3
Expand All @@ -25,4 +23,6 @@ jobs:
with:
context: .
push: true
tags: opensips/python-opensips:latest
tags: |
opensips/python-opensips:latest
opensips/python-opensips:${{ github.ref_name }}

0 comments on commit dd70eb0

Please sign in to comment.