summaryrefslogtreecommitdiff
path: root/.expeditor/build-docker-images.sh
blob: b7da52042f9011606c9db6d92e4e9ca7f5d51772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/bash

arch=$1

echo "--- Building chef/chef:${EXPEDITOR_VERSION} docker image for ${arch}"
docker build \
  --build-arg "CHANNEL=${EXPEDITOR_CHANNEL}" \
  --build-arg "VERSION=${EXPEDITOR_VERSION}" \
  -t "chef/chef:${EXPEDITOR_VERSION}-${arch}" .

echo "--- Pushing chef/chef:${EXPEDITOR_VERSION} docker image for ${arch} to dockerhub"
docker push "chef/chef:${EXPEDITOR_VERSION}-${arch}"