Commit efb3649c authored by David Blyth's avatar David Blyth

CI: deploy to electronioncollider as well as argonneeic

Also removed old deploy.sh
parent 37052df5
Pipeline #588 passed with stages
in 22 seconds
......@@ -15,9 +15,12 @@ deploy-latest:
stage: deploy
script:
- sh -c "docker rmi argonneeic/base:latest || :"
- sh -c "docker rmi electronioncollider/anl-base:latest || :"
- docker tag argonneeic/base:job-$CI_PIPELINE_ID argonneeic/base
- docker tag argonneeic/base:job-$CI_PIPELINE_ID electronioncollider/anl-base
- docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWD
- docker push argonneeic/base:latest
- docker push electronioncollider/anl-base:latest
dependencies: []
only:
- master
......@@ -26,9 +29,12 @@ deploy-tag:
stage: deploy
script:
- sh -c 'docker rmi argonneeic/base:$CI_COMMIT_REF_NAME || :'
- sh -c 'docker rmi electronioncollider/anl-base:$CI_COMMIT_REF_NAME || :'
- docker tag argonneeic/base:job-$CI_PIPELINE_ID argonneeic/base:$CI_COMMIT_REF_NAME
- docker tag argonneeic/base:job-$CI_PIPELINE_ID electronioncollider/anl-base:$CI_COMMIT_REF_NAME
- docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWD
- docker push argonneeic/base:$CI_COMMIT_REF_NAME
- docker push electronioncollider/anl-base:$CI_COMMIT_REF_NAME
dependencies: []
only:
- tags
......
#!/bin/bash
docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWD
docker push argonneeic/base:latest
tag=$(git describe --exact-match --tags HEAD)
if [ "$?" == "0" ]; then
docker tag argonneeic/base argonneeic/base:$tag
docker push argonneeic/base:$tag
fi
#include <proio/event.h>
#include <proio/model/eic.pb.h>
#include <proio/reader.h>
#include <proio/writer.h>
void test() {
auto part = new proio::model::eic::Particle();
part->set_pdg(11);
part->set_mass(0.511e-3);
auto p = part->mutable_p();
p->set_x(1);
p->set_y(1);
p->set_z(1);
auto event = new proio::Event();
auto id = event->AddEntry(part, "Particle");
event->TagEntry(id, "GenStable");
auto writer = new proio::Writer("test.proio");
writer->Push(event);
writer->Flush();
writer->Push(event);
writer->Push(event);
writer->Push(event);
writer->Push(event);
writer->Flush();
writer->Push(event);
delete writer;
auto reader = new proio::Reader("test.proio");
std::cout << reader->Skip(2) << std::endl;
std::cout << reader->Skip(10) << std::endl;
uint64_t nEvents = 0;
while (reader->Next(event)) {
std::cout << "EVENT " << nEvents << std::endl;
std::cout << event->String() << std::endl;
nEvents++;
}
std::cout << reader->Skip(3) << std::endl;
delete event;
delete reader;
}
File added
File added
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment