blob: 64b0cd1c934f83ce4a3340359e9198b314f943cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Build new image
As an example we build a new version (2.2.0) of the leapcode/jessie base image:
IMAGE='jessie'
## Find latest version
I.e. look at the tags at https://hub.docker.com/r/leapcode/ruby/tags/ or query tags with:
curl -s https://registry.hub.docker.com/v2/repositories/leapcode/$IMAGE/tags/ |jq '."results"[]["name"]'
## Build new version
VERSION='1.5'
cd $IMAGE
docker build --no-cache -t leapcode/${IMAGE}:${VERSION} .
## Push images
docker logout
docker login -u leapcode
docker tag leapcode/${IMAGE}:${VERSION} leapcode/${IMAGE}:latest
docker push leapcode/${IMAGE}:latest
docker push leapcode/${IMAGE}:${VERSION}
|