Skip to content

Commit

Permalink
Run docker image smoke test for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
chrzaszcz committed Mar 16, 2023
1 parent 67d51c8 commit cd98c71
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 24 deletions.
72 changes: 49 additions & 23 deletions .circleci/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,15 @@ commands:
- restore_cache:
key: *BUILD_CACHE_KEY
persist_workspace:
parameters:
pattern:
type: string
default: "*"
steps:
- run: git gc
- persist_to_workspace:
root: ~/project/
paths: ["*"]
paths: [<<parameters.pattern>>]
restore_workspace:
steps:
- attach_workspace: {at: ~/project}
Expand Down Expand Up @@ -447,9 +451,21 @@ jobs:
- run:
name: Execute Docker image build and upload
command: tools/circle-build-and-push-docker.sh
- persist_workspace:
pattern: "mongooseim_docker"

docker_smoke_test:
executor: << parameters.executor >>
parameters:
executor:
type: executor
steps:
- restore_workspace
- run:
name: Smoke testing
command: IMAGE_TAG=`cat image_tag` mongooseim-docker/smoke_test.sh
command: |
cd mongooseim_docker
IMAGE_TAG=`cat image_tag` ./smoke_test.sh
docs_build_deploy:
parallelism: 1
Expand Down Expand Up @@ -943,27 +959,37 @@ workflows:
context: mongooseim-org
requires:

- small_tests_24
- ldap_mnesia_24
- pgsql_mnesia_24
- riak_mnesia_24
- dynamic_domains_pgsql_mnesia_24
- dialyzer_24

# - small_tests_24
# - ldap_mnesia_24
# - pgsql_mnesia_24
# - riak_mnesia_24
# - dynamic_domains_pgsql_mnesia_24
# - dialyzer_24
#
- small_tests_25
- internal_mnesia_25
- pgsql_mnesia_25
- mysql_redis_25
- mssql_mnesia_25
- ldap_mnesia_25
- elasticsearch_and_cassandra_25
- dynamic_domains_pgsql_mnesia_25
- dynamic_domains_mysql_redis_25
- dynamic_domains_mssql_mnesia_25
- dialyzer_25
# - internal_mnesia_25
# - pgsql_mnesia_25
# - mysql_redis_25
# - mssql_mnesia_25
# - ldap_mnesia_25
# - elasticsearch_and_cassandra_25
# - dynamic_domains_pgsql_mnesia_25
# - dynamic_domains_mysql_redis_25
# - dynamic_domains_mssql_mnesia_25
# - dialyzer_25
- small_tests_25_arm64

- xref
- edoc

#
# - xref
# - edoc
#
filters: *all_tags
- docker_smoke_test:
name: docker_smoke_test
executor: otp_25
requires:
- docker_build_and_ship
- docker_smoke_test:
name: docker_smoke_test_arm64
executor: arm64
requires:
- docker_build_and_ship
2 changes: 1 addition & 1 deletion tools/circle-build-and-push-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ docker buildx build --platform linux/amd64,linux/arm64 \
--build-arg VERSION=${VERSION} \
.

echo $IMAGE_TAG > ../image_tag
echo $IMAGE_TAG > image_tag

0 comments on commit cd98c71

Please sign in to comment.