Skip to content

Commit

Permalink
[MO] - allow tags to push to the next and retrict release branch to d…
Browse files Browse the repository at this point in the history
…o so (#20)

Signed-off-by: morsak <[email protected]>
  • Loading branch information
see-quick authored and morsak committed Jan 20, 2022
1 parent e69fb81 commit 01ef716
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .azure/build-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ jobs:

- bash: mvn clean verify
env:
STRIMZI_TEST_CONTAINER_KAFKA_VERSION: 3.0.0
STRIMZI_TEST_CONTAINER_IMAGE_VERSION: latest
# Test container optimization
TESTCONTAINERS_RYUK_DISABLED: TRUE
TESTCONTAINERS_CHECKS_DISABLE: TRUE
Expand All @@ -47,7 +45,7 @@ jobs:
NEXUS_USERNAME: $(NEXUS_USERNAME)
NEXUS_PASSWORD: $(NEXUS_PASSWORD)
displayName: "Push artifacts to Nexus repository"
condition: and(succeeded(), or(eq(variables['build.sourceBranch'], 'refs/heads/main'), startsWith(variables['build.sourceBranch'], 'refs/heads/release-')))
condition: and(succeeded(), or(eq(variables['build.sourceBranch'], 'refs/heads/main'), startsWith(variables['build.sourceBranch'], 'refs/tags/')))

- task: PublishTestResults@2
inputs:
Expand Down

0 comments on commit 01ef716

Please sign in to comment.