From c05954ba3dfb7042c7f4feb4a1e1195f4f590741 Mon Sep 17 00:00:00 2001 From: Pablo Moreira Marques Date: Tue, 6 Dec 2022 09:42:39 -0300 Subject: [PATCH 1/2] Add Dockerfile.pre-build to install dependencies in public image and then used by Dockerfile --- Dockerfile | 10 +--------- Dockerfile.pre-build | 9 +++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 Dockerfile.pre-build diff --git a/Dockerfile b/Dockerfile index d852895..b231c2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/Dockerfile.pre-build b/Dockerfile.pre-build new file mode 100644 index 0000000..6fcd3b9 --- /dev/null +++ b/Dockerfile.pre-build @@ -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 \ No newline at end of file From 71d493b99d17e7879f4011fea2a005720f44c85d Mon Sep 17 00:00:00 2001 From: Pablo Moreira Marques Date: Tue, 6 Dec 2022 11:21:29 -0300 Subject: [PATCH 2/2] Updated README.md --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b792c1b..45c9685 100644 --- a/README.md +++ b/README.md @@ -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 }} @@ -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 @@ -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