blob: c54143e03545255eb22de319f2453b5b0148d2bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# Build new image
As an example we build a new version (2.2.0) of the leapcode/ruby image:
## Find latest version
I.e. look at the tags at https://hub.docker.com/r/leapcode/ruby/tags/
VERSION='2.2.0'
IMAGE='ruby'
cd $IMAGE
docker build -t leapcode/${IMAGE}:${VERSION} .
## Push images
docker logout
docker login -u leapcode
docker push leapcode/${IMAGE}:${VERSION}
docker tag leapcode/${IMAGE}:${VERSION} leapcode/${IMAGE}:latest
docker push leapcode/${IMAGE}:latest
|