Skip to content

Bump amazon/aws-cli from 2.17.57 to 2.17.58 (#767) #760

Bump amazon/aws-cli from 2.17.57 to 2.17.58 (#767)

Bump amazon/aws-cli from 2.17.57 to 2.17.58 (#767) #760

name: Docker Publish
on:
push:
branches: [ master ]
paths:
- alias
- awscli.sh
- Dockerfile
pull_request:
branches: [ master ]
paths:
- alias
- awscli.sh
- Dockerfile
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Log in to the Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest
type=ref,event=branch
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Build and Push Docker Image
uses: docker/build-push-action@v6
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
platforms: 'linux/amd64,linux/arm64'
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}