Skip to content

Commit

Permalink
Merge pull request #3 from Pablommr/develop
Browse files Browse the repository at this point in the history
Pre-Build to increase performance
  • Loading branch information
Pablommr authored Dec 6, 2022
2 parents 6e37801 + 71d493b commit 38eac91
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
10 changes: 1 addition & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
FROM ubuntu:22.04

RUN apt-get update -y && \
apt-get install unzip curl -y && \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
curl -LO https://dl.k8s.io/release/v1.23.0/bin/linux/amd64/kubectl && \
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
FROM pablommr/kubernetes-eks:1.2.0

COPY entrypoint.sh /entrypoint.sh

Expand Down
9 changes: 9 additions & 0 deletions Dockerfile.pre-build
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ubuntu:22.04

RUN apt-get update -y && \
apt-get install unzip curl -y && \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
curl -LO https://dl.k8s.io/release/v1.23.0/bin/linux/amd64/kubectl && \
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@v3
-
name: Deployment
uses: Pablommr/kubernetes-eks@v1.1.0
uses: Pablommr/kubernetes-eks@v1.2.0
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down Expand Up @@ -130,17 +130,17 @@ jobs:
uses: actions/checkout@v3
-
name: Service
uses: Pablommr/kubernetes-eks@v1.1.0
uses: Pablommr/kubernetes-eks@v1.2.0
env:
KUBE_YAML: kubernetes/service.yml
-
name: Configmap
uses: Pablommr/kubernetes-eks@v1.1.0
uses: Pablommr/kubernetes-eks@v1.2.0
env:
KUBE_YAML: kubernetes/configmap.yml
-
name: Deployment
uses: Pablommr/kubernetes-eks@v1.1.0
uses: Pablommr/kubernetes-eks@v1.2.0
env:
KUBE_YAML: kubernetes/deployment.yml
ENVSUBST: true
Expand All @@ -152,6 +152,10 @@ jobs:

# Change Log

## v1.2.0

- Changed strategy to use an image that has already been built with dependencies in public registry [kubernetes-eks](https://hub.docker.com/r/pablommr/kubernetes-eks), decreasing action execution time

## v1.1.0

- Add otpion to KUBE_ROLLOUT follow the rollout status in Action page
Expand Down

0 comments on commit 38eac91

Please sign in to comment.