Skip to content

Commit

Permalink
DO-2168 / build on long lasting branches (#811)
Browse files Browse the repository at this point in the history
temporarily added this branch to the allowed branches to build on push
to establish the arm image gets build on all push events but not on PR
events.

https://github.com/radixdlt/babylon-node/actions/runs/7611841830
  • Loading branch information
Kim Fehrs authored Jan 23, 2024
2 parents 799a9c9 + a5439e9 commit ebe38d5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ jobs:
type=sha
flavor:
${{ contains( github.event.pull_request.labels.*.name, 'ARM-TEST') && 'suffix=-amd64' || '' }}
${{ github.event_name != 'pull_request' && 'suffix=-amd64' || '' }}
context: "."
dockerfile: "./Dockerfile"
platforms: "linux/amd64"
Expand All @@ -196,7 +197,7 @@ jobs:
snyk_target_ref: ${{ github.ref_name }}

build_push_container_private_arm:
if: contains( github.event.pull_request.labels.*.name, 'ARM-TEST')
if: contains( github.event.pull_request.labels.*.name, 'ARM-TEST') || github.event_name != 'pull_request'
name: (PRIVATE) Docker ARM
needs:
- setup_tags
Expand Down Expand Up @@ -229,7 +230,7 @@ jobs:
WGET_VERSION=1.21.3-1+b1
tag_suffix_remover:
if: contains( github.event.pull_request.labels.*.name, 'ARM-TEST')
if: contains( github.event.pull_request.labels.*.name, 'ARM-TEST') || github.event_name != 'pull_request'
name: Calculate base tag
runs-on: ubuntu-latest
outputs:
Expand All @@ -245,7 +246,7 @@ jobs:
echo BASE_TAG=$(echo ${{needs.build_push_container_private.outputs.default_tag}} | rev | cut -d- -f2- | rev) >> $GITHUB_OUTPUT
join_multiarch_image_private_dockerhub:
if: contains( github.event.pull_request.labels.*.name, 'ARM-TEST')
if: contains( github.event.pull_request.labels.*.name, 'ARM-TEST') || github.event_name != 'pull_request'
name: Join Multiarch Image Private Dockerhub
needs:
- build_push_container_private
Expand Down

0 comments on commit ebe38d5

Please sign in to comment.