Skip to content

Commit

Permalink
Fixed: Deploy to production on tags and release creation (#1035)
Browse files Browse the repository at this point in the history
* chore: Update podman.yml workflow conditions for prod environment

* chore: Update podman.yml workflow conditions for prod environment
  • Loading branch information
drikusroor authored May 27, 2024
1 parent a89ca36 commit 172625b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/podman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- develop
- main
tags:
- '*'
workflow_dispatch:
release:
types: [created]
Expand Down Expand Up @@ -195,8 +197,8 @@ jobs:
environment: Production
runs-on: PRD

# this job runs only on tags
if: github.ref == 'refs/tags/*'
# this job runs only on tags or when a release is created, or when manually triggered for a tag
if: github.ref == 'refs/tags/*' || github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/tags/*')
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
Expand Down

0 comments on commit 172625b

Please sign in to comment.