Skip to content

Commit 961e21e

Browse files
committed
feat: add test tag input to az_acr_push
1 parent 46ecd96 commit 961e21e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/az_acr_push.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@ name: 'ACR: Docker Push'
22

33
on:
44
workflow_call:
5+
inputs:
6+
test_tag:
7+
description: 'Create test tag'
8+
required: false
9+
default: false
10+
type: boolean
511

612
jobs:
713
az-acr-push-dev:
814
name: "DEV: ACR Build & Push"
915
runs-on: ubuntu-latest
1016
environment: dev
11-
if: github.ref_name != 'prod'
17+
if: github.event.inputs.test_tag != true && github.ref_name != 'prod'
1218
env:
1319
DOCKERFILE: ${{ vars.DOCKERFILE || 'Dockerfile' }}
1420
AZURE_CONTAINER_REGISTRY: ${{ vars.AZURE_CONTAINER_REGISTRY }}
@@ -54,7 +60,7 @@ jobs:
5460
name: "DEV: ACR Build & Push Tests"
5561
runs-on: ubuntu-latest
5662
environment: dev
57-
if: github.ref_name != 'prod'
63+
if: github.event.inputs.test_tag == true
5864
env:
5965
DOCKERFILE: dev.Dockerfile
6066
AZURE_CONTAINER_REGISTRY: ${{ vars.AZURE_CONTAINER_REGISTRY }}

0 commit comments

Comments
 (0)