Skip to content

Commit

Permalink
fix: address pr comments to run gh action on tag push
Browse files Browse the repository at this point in the history
  • Loading branch information
ritwikranjan committed Oct 2, 2024
1 parent b3ddc44 commit 718af24
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/docker-publish-nptest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: Build and Push Docker Image for network/benchmarks/netperf/nptest

on:
push:
branches:
- master
release:
types: [published, edited]

tags:
- '**'

jobs:
build-and-push:
permissions:
Expand Down Expand Up @@ -38,5 +36,4 @@ jobs:
make push
env:
DOCKERREPO: ghcr.io/${{ github.repository_owner }}/nptest
# IMAGE_TAG would be commit id if push else tag if release
IMAGE_TAG: ${{ github.event_name == 'push' && github.sha || github.event.release.tag_name }}
IMAGE_TAG: ${{ github.ref_name }}

0 comments on commit 718af24

Please sign in to comment.