Skip to content
Snippets Groups Projects
Unverified Commit 45142725 authored by jfederico's avatar jfederico
Browse files

GRN2-XX: exclude master from alternate image build

parent ee6e4a28
Branches
Tags
No related merge requests found
......@@ -70,7 +70,7 @@ jobs:
# Alternate Image with alpine
- name: Alternate Alpine Build and Push
if: contains(env.DOCKER_BUILD_ENABLED, 'true') && contains(env.DOCKER_BUILD_ALTERNATE_ENABLED, 'true')
if: contains(env.DOCKER_BUILD_ENABLED, 'true') && contains(env.DOCKER_BUILD_ALTERNATE_ENABLED, 'true') && github.ref != 'refs/heads/master'
uses: docker/build-push-action@v2
with:
file: dockerfiles/v2/alpine
......@@ -83,7 +83,7 @@ jobs:
# Alternate Images for bbb-bionic-230 with amazonlinux
- name: Alternate Amazon Linux Build and Push
if: contains(env.DOCKER_BUILD_ENABLED, 'true') && contains(env.DOCKER_BUILD_ALTERNATE_ENABLED, 'true')
if: contains(env.DOCKER_BUILD_ENABLED, 'true') && contains(env.DOCKER_BUILD_ALTERNATE_ENABLED, 'true') && github.ref != 'refs/heads/master'
uses: docker/build-push-action@v2
with:
file: dockerfiles/v2/amazonlinux
......
......@@ -10,7 +10,10 @@ env:
name: CI
on:
push:
branches-ignore: "master"
branches-ignore:
- master
- v1
- v2
pull_request:
branches: "*"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment