Skip to content

Commit

Permalink
add cci for ARM and pause GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanq16 authored May 18, 2024
1 parent ac15d3b commit 5c49aad
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 5 deletions.
31 changes: 31 additions & 0 deletions .circleci/config.yml
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.
2 changes: 1 addition & 1 deletion security_docker_arm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM tanq16/intermediate_builder:arm as intermediate_builder
FROM intermediate_builder as intermediate_builder
FROM ubuntu:jammy

# ============================================================================================================
Expand Down
7 changes: 3 additions & 4 deletions security_docker_arm/local-builder-script.sh
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

0 comments on commit 5c49aad

Please sign in to comment.