#!/usr/bin/env bash
set -e

# agent with docker-compose
docker build --rm -f docker-compose/Dockerfile -t xaicorp/jenkins-agent-docker-compose:latest .
docker run --rm --entrypoint docker xaicorp/jenkins-agent-docker-compose:latest version | grep 'Version:'
docker run --rm --entrypoint docker-compose xaicorp/jenkins-agent-docker-compose:latest --version | grep 'docker-compose version 1.23'
docker tag xaicorp/jenkins-agent-docker-compose:latest dkregistry.xai-corp.net:5000/xaicorp/jenkins-agent-docker-compose:latest
docker push dkregistry.xai-corp.net:5000/xaicorp/jenkins-agent-docker-compose:latest

