-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
version: 2.1 | ||
jobs: | ||
build-arm-image: | ||
machine: | ||
image: ubuntu-2204:current | ||
# docker_layer_caching: true | ||
resource_class: arm.large | ||
steps: | ||
- checkout | ||
# - setup_remote_docker | ||
# - restore_cache: | ||
# keys: | ||
# - v1-{{ .Branch }} | ||
# paths: | ||
# - /caches/app.tar | ||
- run: | ||
name: Docker Login | ||
command: | | ||
echo $DOCKERHUB_PASSWORD | docker login -u $DOCKERHUB_USERNAME --password-stdin | ||
- run: | ||
name: Execute Build Script | ||
command: | | ||
cd security_docker_arm | ||
bash local-builder-script.sh | ||
# - run: | ||
# name: Push Image | ||
# command: | | ||
# TAG=0.1.$CIRCLE_BUILD_NUM | ||
# docker build -t $DOCKERHUB_USERNAME/circleci-docker-example:$TAG . | ||
|
||
# docker push $DOCKERHUB_USERNAME/circleci-docker-example:$TAG |
File renamed without changes.
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,5 +1,4 @@ | ||
DOCKER_BUILDKIT=1 docker buildx build -o type=docker --platform=linux/arm64 -f builder.Dockerfile -t tanq16/intermediate_builder:arm . | ||
docker push tanq16/intermediate_builder:arm | ||
docker system prune -f | ||
DOCKER_BUILDKIT=1 docker buildx build -o type=docker --platform=linux/arm64 -t tanq16/sec_docker:main_apple . | ||
DOCKER_BUILDKIT=1 docker build -f builder.Dockerfile -t intermediate_builder . | ||
docker builder prune -f | ||
DOCKER_BUILDKIT=1 docker build -t tanq16/sec_docker:main_apple . | ||
docker push tanq16/sec_docker:main_apple |