-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from metal-stack/move-to-docker-make-docker-image
Move to alpine-based docker-make docker image.
- Loading branch information
Showing
2 changed files
with
5 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,8 @@ | ||
FROM ubuntu:19.10 | ||
|
||
ARG DOCKER_MAKE_VERSION=alpine | ||
FROM metalstack/docker-make:${DOCKER_MAKE_VERSION} | ||
LABEL repository="https://github.com/metal-stack/action-docker-make" | ||
LABEL maintainer="metal-stack authors <info@metal-stack.io>" | ||
|
||
ARG DOCKER_MAKE_VERSION=v0.3.3 | ||
|
||
RUN apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get --yes install --no-install-recommends \ | ||
apt-transport-https \ | ||
ca-certificates \ | ||
curl \ | ||
gnupg2 \ | ||
git \ | ||
lz4 \ | ||
software-properties-common \ | ||
&& curl -fsSLo /usr/local/bin/docker-make https://github.com/fi-ts/docker-make/releases/download/${DOCKER_MAKE_VERSION}/docker-make-linux-amd64 \ | ||
&& chmod +x /usr/local/bin/docker-make \ | ||
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \ | ||
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu eoan stable" \ | ||
&& apt-get update \ | ||
&& apt-get --yes install --no-install-recommends docker-ce | ||
|
||
COPY LICENSE README.md / | ||
COPY entrypoint.sh / | ||
|
||
RUN mv /docker-make /usr/local/bin/docker-make | ||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/bin/sh | ||
|
||
echo "" | ||
echo "" | ||
cd "${GITHUB_WORKSPACE}" | ||
|
||
export DOCKER_MAKE_REGISTRY_LOGIN_USER="${INPUT_USERNAME}" | ||
export DOCKER_MAKE_REGISTRY_LOGIN_PASSWORD="${INPUT_PASSWORD}" | ||
|
||
docker-make --log-level=DEBUG ${INPUT_ARGS} | ||
docker-make ${INPUT_ARGS} |