Arguments work! Yay!
This commit is contained in:
@@ -27,5 +27,5 @@ build-git:
|
|||||||
except:
|
except:
|
||||||
- pushes
|
- pushes
|
||||||
script:
|
script:
|
||||||
- docker build --pull -t "$CI_REGISTRY_IMAGE:$GRAV_VERSION-git" ./git/
|
- docker build --pull --build-arg "CI_COMMIT_SHORT_SHA=$CI_COMMIT_SHORT_SHA" -t "$CI_REGISTRY_IMAGE:$GRAV_VERSION-git" ./git/
|
||||||
- docker push "$CI_REGISTRY_IMAGE:$GRAV_VERSION-git"
|
- docker push "$CI_REGISTRY_IMAGE:$GRAV_VERSION-git"
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
ARG CI_COMMIT_SHORT_SHA
|
||||||
FROM williammiceli/grav:$CI_COMMIT_SHORT_SHA
|
FROM williammiceli/grav:$CI_COMMIT_SHORT_SHA
|
||||||
|
|
||||||
# Install Git
|
# Install Git
|
||||||
|
|||||||
Reference in New Issue
Block a user