-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow: add container build validation
This removes the container build and validation from Travis CI. Signed-off-by: Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit bb796c4)
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 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 @@ | ||
name: container | ||
on: [pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: build the ceph container image | ||
run: make RELEASE="demo" FLAVORS="luminous,centos,7" build | ||
|
||
- name: run the ceph demo container | ||
run: docker run -d --privileged --name ceph-demo -v /etc/modprobe.d:/etc/modprobe.d -v /mnt/ceph:/var/lib/ceph -e RGW_FRONTEND_TYPE=civetweb -e RGW_CIVETWEB_OPTIONS="num_threads=100" -e DEBUG=verbose -e RGW_CIVETWEB_PORT=8000 -e MON_IP=127.0.0.1 -e CEPH_PUBLIC_NETWORK=0.0.0.0/0 -e CLUSTER=test -e CEPH_DEMO_UID=demo -e CEPH_DEMO_ACCESS_KEY=G1EZ5R4K6IJ7XUQKMAED -e CEPH_DEMO_SECRET_KEY=cNmUrqpBKjCMzcfqG8fg4Qk07Xkoyau52OmvnSsz -e CEPH_DEMO_BUCKET=foobar -e SREE_VERSION=v0.1 -e SREE_PORT=5001 -e DATA_TO_SYNC=/etc/modprobe.d -e DATA_TO_SYNC_BUCKET=github ceph/daemon:demo-luminous-centos-7-x86_64 demo | ||
|
||
- name: run the demo validation | ||
run: | | ||
sleep 10 | ||
sudo ./travis-builds/validate_demo_cluster.sh | ||
docker exec ceph-demo ps fauwwwx | ||
docker exec ceph-demo ss -ntlp | ||
docker exec ceph-demo cat /etc/ceph/test.conf | ||
- name: debug on failure | ||
if: ${{ failure() }} | ||
run: | | ||
docker images | ||
docker ps | ||
docker ps -a | ||
docker logs ceph-demo | ||
docker exec ceph-demo ceph --cluster test -s |