Skip to content

Commit

Permalink
Use existing Alpine image (#25)
Browse files Browse the repository at this point in the history
* Use alpine k8s source image and add deploy.sh on the fly (#20)

* Update Dockerfile
* Update action.yaml
* Delete .github directory

* Bumping alpine version

---------

Co-authored-by: Marco Aurelio Caldas Miranda <[email protected]>
  • Loading branch information
LeoDiazL and macmiranda authored Feb 8, 2023
1 parent 9a40e1f commit 16b738c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 34 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/build-and-publish.yaml

This file was deleted.

9 changes: 1 addition & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
FROM python:3.8-slim-buster

# Install the toolset.
RUN apt -y update && apt -y install curl git \
&& pip install awscli \
&& curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash \
&& curl -LO https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl \
&& chmod +x ./kubectl && mv ./kubectl /usr/local/bin/kubectl
FROM alpine/k8s:1.26.1

COPY deploy.sh /usr/local/bin/deploy

Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ inputs:

runs:
using: 'docker'
image: 'docker://bitovi/deploy-eks-helm:v1.2.2'
image: 'Dockerfile'
env:
AWS_REGION: ${{ inputs.aws-region }}
AWS_SECRET_ACCESS_KEY: ${{ inputs.aws-secret-access-key }}
Expand Down

0 comments on commit 16b738c

Please sign in to comment.