Skip to content

Commit dc09686

Browse files
committed
Use alpine names for tags
Do not guess the tag; be explicit instead. The tags in this repo will have to include the `alpine` name too, to be a drop-in replacement for upstreams.
1 parent bafce70 commit dc09686

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ addons:
2121

2222
env:
2323
matrix:
24-
- DOCKER_TAG=9.6
25-
- DOCKER_TAG=10
26-
- DOCKER_TAG=11
27-
- DOCKER_TAG=latest
24+
- DOCKER_TAG=9.6-alpine
25+
- DOCKER_TAG=10-alpine
26+
- DOCKER_TAG=11-alpine
27+
- DOCKER_TAG=alpine
2828

2929
install:
3030
- pip install -r tests/ci-requirements.txt

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"program": "${file}",
1010
"console": "integratedTerminal",
1111
"env": {
12-
"DOCKER_TAG": "latest",
12+
"DOCKER_TAG": "alpine",
1313
},
1414
},
1515
]

hooks/build

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,12 @@ test -n "$DOCKER_TAG"
66

77
# Prepare build args
88
commit="${GIT_SHA1:-$TRAVIS_COMMIT}"
9-
if [ "$DOCKER_TAG" == "latest" ]; then
10-
base_tag="alpine"
11-
else
12-
base_tag="$DOCKER_TAG-alpine"
13-
fi
149

1510
# To be configured via Docker Hub UI, all labels from postgres image targeting
1611
# this master branch
1712
time docker image build \
1813
--build-arg VCS_REF="$commit" \
1914
--build-arg BUILD_DATE="$(date --rfc-3339 ns)" \
20-
--build-arg BASE_TAG="$base_tag" \
15+
--build-arg BASE_TAG="$DOCKER_TAG" \
2116
--tag "tecnativa/postgres-autoconf:$DOCKER_TAG" \
2217
.

0 commit comments

Comments
 (0)