-
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.
- Loading branch information
1 parent
851fe50
commit 2aae3eb
Showing
1 changed file
with
19 additions
and
5 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,8 +1,22 @@ | ||
# Container image that runs your code | ||
FROM alpine:3.10 | ||
FROM debian:latest | ||
|
||
# Copies your code file from your action repository to the filesystem path `/` of the container | ||
COPY entrypoint.sh /entrypoint.sh | ||
RUN apt-get update \ | ||
&& apt-get install -y wget git \ | ||
&& apt-get update \ | ||
&& apt-get install -y gnupg software-properties-common \ | ||
&& wget -O- https://apt.releases.hashicorp.com/gpg | \ | ||
gpg --dearmor | \ | ||
tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null \ | ||
&& gpg --no-default-keyring \ | ||
--keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg \ | ||
--fingerprint \ | ||
&& echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \ | ||
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \ | ||
tee /etc/apt/sources.list.d/hashicorp.list \ | ||
&& apt update \ | ||
&& apt-get install -y terraform \ | ||
&& git clone https://github.com/tailcallhq/tailcall-on-aws.git \ | ||
&& terraform init | ||
|
||
# Code file to execute when the docker container starts up (`entrypoint.sh`) | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD ["terraform", "apply"] |