Skip to content

Commit

Permalink
removed my changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wcannon committed Nov 15, 2021
1 parent 4291b2e commit 5b131cd
Showing 1 changed file with 0 additions and 107 deletions.
107 changes: 0 additions & 107 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,102 +112,6 @@ jobs:
- clear_environment:
cache_key: snarkos-clippy-cache

build-and-publish-docker-arm:
machine:
image: ubuntu-2004:202101-01
docker_layer_caching: true
resource_class: arm.large
steps:
- checkout
- run: mkdir -p my_workspace
- run:
name: "Build snarkos Docker Image ARM V8"
no_output_timeout: 2h
command: |
VERSION=$(git rev-parse --short HEAD)
docker build -f Dockerfile -t $DOCKER_REPO:$CIRCLE_BRANCH-$VERSION-arm64 .
- run:
name: "Push snarkos Docker Image ARM V8"
command: |
VERSION=$(git rev-parse --short HEAD)
echo $DOCKERHUB_TOKEN | docker login -u $DOCKERHUB_USERNAME --password-stdin
# CREATE THE SHELL FILE WITH IMAGE NAME AND TAG
docker push $DOCKER_REPO:$CIRCLE_BRANCH-$VERSION-arm64
- run:
name: "Save arm64 image tag"
command: |
VERSION=$(git rev-parse --short HEAD)
echo "$CIRCLE_BRANCH-$VERSION-arm64" > my_workspace/docker_tag_arm
- persist_to_workspace:
root: my_workspace
paths:
- docker_tag_arm

build-and-publish-docker-amd:
machine:
image: ubuntu-2004:202101-01
docker_layer_caching: true
resource_class: xlarge
steps:
- checkout
- run: mkdir -p my_workspace
- run:
name: "Build snarkos Docker Image AMD"
no_output_timeout: 2h
command: |
VERSION=$(git rev-parse --short HEAD)
docker build -f Dockerfile -t $DOCKER_REPO:$CIRCLE_BRANCH-$VERSION-amd64 .
- run:
name: "Push snarkos Docker Image AMD"
command: |
VERSION=$(git rev-parse --short HEAD)
echo $DOCKERHUB_TOKEN | docker login -u $DOCKERHUB_USERNAME --password-stdin
docker push $DOCKER_REPO:$CIRCLE_BRANCH-$VERSION-amd64
- run:
name: "Save amd64 image tag"
command: |
VERSION=$(git rev-parse --short HEAD)
echo "$CIRCLE_BRANCH-$VERSION-amd64" > my_workspace/docker_tag_amd
- persist_to_workspace:
root: my_workspace
paths:
- docker_tag_amd

publish_snarkos_manifest:
machine:
image: ubuntu-2004:202101-01
docker_layer_caching: true
resource_class: medium
steps:
- checkout
- attach_workspace:
at: my_workspace
- run:
name: "Pull ARM docker image"
command: |
ARM_TAG=$(cat my_workspace/docker_tag_arm)
echo $ARM_TAG
docker pull $DOCKER_REPO:$ARM_TAG
- run:
name: "Pull AMD docker image"
command: |
AMD_TAG=$(cat my_workspace/docker_tag_amd)
echo $AMD_TAG
docker pull $DOCKER_REPO:$AMD_TAG
- run:
name: "Create and push docker multi arch manifest"
command: |
ARM_TAG=$(cat my_workspace/docker_tag_arm)
AMD_TAG=$(cat my_workspace/docker_tag_amd)
echo $DOCKERHUB_TOKEN | docker login -u $DOCKERHUB_USERNAME --password-stdin
echo $DOCKER_REPO
echo $CIRCLE_BRANCH
echo $ARM_TAG
echo $AMD_TAG
docker manifest create $DOCKER_REPO:${CIRCLE_BRANCH}-latest --amend $DOCKER_REPO:${ARM_TAG} --amend $IDOCKER_REPO:${AMD_TAG}
docker manifest inspect $DOCKER_REPO:${CIRCLE_BRANCH}-latest
docker manifest push $DOCKER_REPO:${CIRCLE_BRANCH}-latest
workflows:
main-workflow:
jobs:
Expand All @@ -217,14 +121,3 @@ workflows:
# - rust-stable
- fmt
- clippy
build-snarkos-docker-images: # docker images
when:
or:
- equal: [ testnet2, << pipeline.git.branch >> ]
jobs:
- build-and-publish-docker-arm
- build-and-publish-docker-amd
- publish_snarkos_manifest:
requires:
- build-and-publish-docker-arm
- build-and-publish-docker-amd

0 comments on commit 5b131cd

Please sign in to comment.