From a794983245b3f8a9db4996ce3990725776831bba Mon Sep 17 00:00:00 2001 From: Pieter Develtere Date: Wed, 24 Apr 2024 11:52:27 +0200 Subject: [PATCH] update aws cli to version 2 --- .github/workflows/build-docker-image.yaml | 4 ++-- Dockerfile | 8 ++------ entrypoint.sh | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-docker-image.yaml b/.github/workflows/build-docker-image.yaml index d8049a0..8accafb 100644 --- a/.github/workflows/build-docker-image.yaml +++ b/.github/workflows/build-docker-image.yaml @@ -13,9 +13,9 @@ jobs: name: Build docker image runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} diff --git a/Dockerfile b/Dockerfile index 59bd5c1..cbd83df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,8 @@ -FROM python:3.10.0a7-alpine3.13 +FROM alpine:3.19 LABEL maintainer="Ian Belcher " -ENV PYTHONIOENCODING=UTF-8 - -RUN apk add --no-cache curl - -RUN pip install awscli +RUN apk add --no-cache curl aws-cli ADD entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh index fa5c239..5bbc5b6 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -18,7 +18,7 @@ if [ -n "${INPUT_AWS_SECRET_ACCESS_KEY:-}" ]; then fi if [ -n "${INPUT_AWS_REGION:-}" ]; then - export AWS_DEFAULT_REGION="${INPUT_AWS_REGION}" + export AWS_REGION="${INPUT_AWS_REGION}" fi if [ -n "${INPUT_KUBERNETES_VERSION:-}" ]; then