File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM registry.centos.org/centos/centos:7
22
3- MAINTAINER Jyasveer Gotta <jgotta@redhat.com>
3+ LABEL Jyasveer Gotta <jgotta@redhat.com>
44
55RUN mkdir -p /opt/scripts /var/www/html
66
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -exv
3+
4+ BASE_IMG=" fabric8-analytics-stack-report-ui"
5+ QUAY_IMAGE=" quay.io/app-sre/${BASE_IMG} "
6+ IMG=" ${BASE_IMG} :latest"
7+
8+ GIT_HASH=` git rev-parse --short=7 HEAD`
9+
10+ # build the image
11+ docker build --no-cache \
12+ --force-rm \
13+ -t ${IMG} \
14+ -f ./Dockerfile .
15+
16+ # push the image
17+ skopeo copy --dest-creds " ${QUAY_USER} :${QUAY_TOKEN} " \
18+ " docker-daemon:${IMG} " \
19+ " docker://${QUAY_IMAGE} :latest"
20+
21+ skopeo copy --dest-creds " ${QUAY_USER} :${QUAY_TOKEN} " \
22+ " docker-daemon:${IMG} " \
23+ " docker://${QUAY_IMAGE} :${GIT_HASH} "
You can’t perform that action at this time.
0 commit comments