Skip to content

feat: Upgrade awscli v1 to 1.29.53, v2 to 2.13.21 #54

feat: Upgrade awscli v1 to 1.29.53, v2 to 2.13.21

feat: Upgrade awscli v1 to 1.29.53, v2 to 2.13.21 #54

Workflow file for this run

# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: v1
on:
push:
tags:
- "1.*"
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
BUILD_CTX: v1
BUILD_PLATFORMS: linux/amd64,linux/arm64
DOCKER_VERSION: "24.0.5"
steps:
- name: Setup Envs
run: echo BUILD_TAG=${GITHUB_REF#refs/tags/} >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
- name: Docker Metadata
id: meta
uses: docker/metadata-action@v5
# https://github.com/docker/metadata-action
with:
images: |
ghcr.io/cheyilin/docker-awscli
cheyilin/docker-awscli
tags: |
type=raw,value=${{ env.BUILD_CTX }}
type=semver,pattern={{version}}
flavor: |
latest=false
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ env.BUILD_PLATFORMS }}
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v5
# https://github.com/docker/build-push-action
with:
context: ${{ env.BUILD_CTX }}
platforms: ${{ env.BUILD_PLATFORMS }}
build-args: |
DOCKER_VERSION=${{ env.DOCKER_VERSION }}
AWS_CLI_VERSION=${{ env.BUILD_TAG }}
push: true
cache-from: type=registry,ref=ghcr.io/cheyilin/docker-awscli:${{ env.BUILD_CTX }}
cache-to: type=inline
labels: ${{ steps.meta.outputs.labels }}
tags: |
${{ steps.meta.outputs.tags }}
- name: Create Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
## GitHub Container Registry
https://ghcr.io/cheyilin/docker-awscli
```text
ghcr.io/cheyilin/docker-awscli:${{ env.BUILD_TAG }}
```
## Docker Hub
https://hub.docker.com/r/cheyilin/docker-awscli
```text
cheyilin/docker-awscli:${{ env.BUILD_TAG }}
```