2019-04-19 00:32:19 +02:00
|
|
|
ARG PULUMI_VERSION=latest
|
|
|
|
FROM pulumi/pulumi:${PULUMI_VERSION}
|
|
|
|
# Extend the base pulumi/pulumi container at a specific version. "latest"
|
|
|
|
# will always correspond to the most recently released SDK.
|
|
|
|
|
|
|
|
# Label things so it lights up in GitHub Actions!
|
|
|
|
LABEL "com.github.actions.name"="Pulumi"
|
|
|
|
LABEL "com.github.actions.description"="Deploy apps and infra to your favorite cloud!"
|
|
|
|
LABEL "com.github.actions.icon"="cloud-lightning"
|
|
|
|
LABEL "com.github.actions.color"="purple"
|
|
|
|
|
|
|
|
# pulumi/actions contains documentation, examples. The actual container image is at
|
|
|
|
# https://github.com/pulumi/pulumi.
|
|
|
|
LABEL "repository"="https://github.com/pulumi/actions"
|
2019-07-25 18:58:12 +02:00
|
|
|
LABEL "homepage"="https://pulumi.com/docs/reference/cd-github-actions/"
|
2019-04-19 00:32:19 +02:00
|
|
|
|
|
|
|
# Install deps not already included in base container image.
|
|
|
|
RUN apt-get update -y && \
|
|
|
|
apt-get install -y jq
|
|
|
|
|
|
|
|
# Copy the entrypoint script.
|
|
|
|
COPY ./entrypoint.sh /usr/bin/pulumi-action
|
|
|
|
|
|
|
|
# The app directory should contain the Pulumi program and is the pwd for the CLI.
|
|
|
|
WORKDIR /app
|
|
|
|
VOLUME ["/app"]
|
|
|
|
|
2020-05-13 17:30:53 +02:00
|
|
|
# We need to pass this environment variable as the confirmation to `--non-interactive` in the CLI
|
|
|
|
ENV PULUMI_SKIP_CONFIRMATIONS=true
|
|
|
|
|
2019-04-19 00:32:19 +02:00
|
|
|
# This image uses a thin wrapper over the Pulumi CLI as its entrypoint. As a result, you may run commands
|
|
|
|
# simply by running `docker run pulumi/pulumi up` to run the program mounted in the `/app` volume location.
|
|
|
|
ENTRYPOINT ["/usr/bin/pulumi-action", "--non-interactive"]
|