-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker: make available as ARM64 (#538)
* CI: set up arm64 build * fee_estimates: clean up usage
- Loading branch information
Showing
7 changed files
with
78 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,44 @@ | ||
build_base: | ||
stage: build | ||
rules: | ||
- if: $CI_COMMIT_BRANCH | ||
changes: | ||
paths: | ||
- Dockerfile.deps | ||
compare_to: master | ||
script: | ||
- docker buildx build | ||
--platform linux/amd64,linux/arm64 | ||
--push | ||
-f Dockerfile.deps | ||
--build-arg BUILDKIT_INLINE_CACHE=1 | ||
--cache-from ${IMAGE_BASE}:latest | ||
-t ${IMAGE_BASE}:$CI_COMMIT_SHA | ||
-t ${IMAGE_BASE}:latest | ||
. | ||
|
||
test_docker_build_esplora: | ||
extends: .build_setup | ||
stage: build | ||
script: | ||
- docker pull ${IMAGE}:latest || true | ||
- docker build | ||
--network=host | ||
- docker buildx build | ||
--platform linux/amd64,linux/arm64 | ||
--build-arg BUILDKIT_INLINE_CACHE=1 | ||
--cache-from ${IMAGE}:latest | ||
-f Dockerfile | ||
-t ${IMAGE} . | ||
- docker rmi ${IMAGE} || true | ||
|
||
build_esplora: | ||
extends: .build_setup | ||
stage: build | ||
when: manual | ||
script: | ||
- curl -s "${DOCKERHUB_ESPLORA_URL}" | grep -q "$CI_COMMIT_SHA" || ( | ||
sed -i "s#esplora-base:latest#esplora-base:${BASE_TAG}#" Dockerfile | ||
&& docker pull ${IMAGE}:latest | ||
&& docker build | ||
--network=host | ||
&& docker buildx build | ||
--platform linux/amd64,linux/arm64 | ||
--push | ||
--build-arg BUILDKIT_INLINE_CACHE=1 | ||
--build-arg FOOT_HTML='<!-- '"$CI_COMMIT_SHA"' -->' | ||
--cache-from ${IMAGE}:latest | ||
-t ${IMAGE}:latest | ||
-t ${IMAGE}:$CI_COMMIT_SHA . | ||
&& docker push ${IMAGE}:$CI_COMMIT_SHA) | ||
-t ${IMAGE}:$CI_COMMIT_SHA .) | ||
- if [ $CI_COMMIT_BRANCH == "master" ]; then docker pull ${IMAGE}:$CI_COMMIT_SHA; docker tag ${IMAGE}:$CI_COMMIT_SHA ${IMAGE}:latest; docker push ${IMAGE}:latest; fi | ||
|
||
build_base: | ||
extends: .build_setup | ||
rules: | ||
- if: $CI_COMMIT_BRANCH | ||
changes: | ||
paths: | ||
- Dockerfile.deps | ||
compare_to: master | ||
script: | ||
- docker pull ${BULLSEYE_IMAGE} || true | ||
- docker pull ${IMAGE_BASE}:latest || true | ||
- > | ||
docker build | ||
-f Dockerfile.deps | ||
--network=host | ||
--build-arg BUILDKIT_INLINE_CACHE=1 | ||
--cache-from ${IMAGE_BASE}:latest | ||
-t ${IMAGE_BASE}:$CI_COMMIT_SHA | ||
-t ${IMAGE_BASE}:latest | ||
. | ||
- docker push ${IMAGE_BASE}:$CI_COMMIT_SHA | ||
- docker push ${IMAGE_BASE}:latest |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters