Skip to content

Commit

Permalink
Using hook to pass image name for automated build
Browse files Browse the repository at this point in the history
We need to pass the argument `BASE_IMAGE` to docker build in order to
specify whether we're building on Debian stretch or buster, but
dockerhub's automated builds don't let you do this directly. This is a
workaround per [this issue](docker/hub-feedback#508).
  • Loading branch information
danshapero committed Aug 8, 2019
1 parent 3cfa1d8 commit 036ac00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions build-images.sh

This file was deleted.

3 changes: 3 additions & 0 deletions hooks/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

docker build --build-arg BASE_IMAGE=$BASE_IMAGE --tag $IMAGE_NAME .

0 comments on commit 036ac00

Please sign in to comment.