Skip to content

Commit

Permalink
CI - checkout with master fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Azovtsev committed Jan 26, 2025
1 parent 6e6003b commit c31e29c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/zombie-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
polkadot_builder:
description: 'Build the polkadot builder image'
required: false
default: false
default: 'false'
type: 'boolean'
polkadot_builder_tag:
description: 'Custom Polkadot Builder tag'
Expand All @@ -31,7 +31,7 @@ on:
polkadot_binaries:
description: 'Build the polkadot binaries'
required: false
default: true
default: 'true'
type: 'boolean'
polkadot_sdk_tag:
description: 'Custom Polkadot SDK tag'
Expand Down Expand Up @@ -72,7 +72,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

with:
fetch-depth: 0

- name: Fetch master branch
run: git fetch origin master:master

- name : "Authenticate with Google Cloud"
uses: 'google-github-actions/auth@v2'
with:
Expand All @@ -92,11 +97,12 @@ jobs:
run: |
make set_versions
exists=$(make polkadot_builder_check_tag)
echo "Image Exists: $exists"
echo "exists=$exists" >> $GITHUB_ENV
- name: "Build Polkadot Builder"
working-directory: ./zombienet/docker
if: env.exists == 'false' || github.event.inputs.polkadot_builder == true
if: env.exists == 'false' || github.event.inputs.polkadot_builder == 'true'
run: make polkadot_builder_all_arch

- name: "Versions Info"
Expand Down
8 changes: 4 additions & 4 deletions zombienet/docker/Makefile.include/polkadot.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ polkadot_builder_push_manifest:
docker manifest push $(DOCKER_REGISTRY_PATH)polkadot_builder:$(BUILDER_LATEST_TAG)

polkadot_builder_all_arch: set_versions
$(MAKE) polkadot_builder PLATFORM=linux/amd64 ARCHITECTURE=amd64 ; \
$(MAKE) polkadot_builder_push PLATFORM=linux/amd64 ARCHITECTURE=amd64 ; \
$(MAKE) polkadot_builder PLATFORM=linux/arm64 ARCHITECTURE=arm64 ; \
$(MAKE) polkadot_builder_push PLATFORM=linux/arm64 ARCHITECTURE=arm64 ; \
$(MAKE) polkadot_builder PLATFORM=linux/amd64 ARCHITECTURE=amd64 && \
$(MAKE) polkadot_builder_push PLATFORM=linux/amd64 ARCHITECTURE=amd64 && \
$(MAKE) polkadot_builder PLATFORM=linux/arm64 ARCHITECTURE=arm64 && \
$(MAKE) polkadot_builder_push PLATFORM=linux/arm64 ARCHITECTURE=arm64 && \
$(MAKE) polkadot_builder_push_manifest

polkadot_builder_image_info: set_versions
Expand Down
2 changes: 1 addition & 1 deletion zombienet/docker/Makefile.include/variables.mk
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ KAGOME_PACKAGE_VERSION ?=
WORKING_DIR := $(shell pwd)/../../../kagome
DELETE_IMAGE_AFTER_TEST ?= true

CURRENT_DATE := $(shell date +"%Y%m%d")
CURRENT_DATE := $(shell TZ=UTC-3 date +"%Y%m%d")

export DOCKER_BUILDKIT=1
# BUILDKIT_PROGRESS - auto, plain, tty, rawjson
Expand Down

0 comments on commit c31e29c

Please sign in to comment.