Skip to content

Update amazon/aws-cli base image 2.22.18 / 2024-12-17 #22

Update amazon/aws-cli base image 2.22.18 / 2024-12-17

Update amazon/aws-cli base image 2.22.18 / 2024-12-17 #22

Workflow file for this run

name: Create Release and Push to Container Registries
on:
push:
tags:
- '2.*.*'
workflow_dispatch:
inputs:
tag:
description: The tag to publish
required: true
jobs:
publish-image:
name: Build and Push to Docker Hub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
if: github.event_name == 'push'
- uses: actions/checkout@v4
if: github.event_name == 'workflow_dispatch'
with:
ref: refs/tags/${{ github.event.inputs.tag }}
- run: |
echo REPOSITORY="$(
echo "${GITHUB_REPOSITORY}" |
tr '[:upper:]' '[:lower:]' |
sed 's/docker-//'
)" >"${GITHUB_ENV}"
- uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/[email protected]
with:
images: |
${{ env.REPOSITORY }}
ghcr.io/${{ env.REPOSITORY }}
# generate Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{version}}
- uses: docker/[email protected]
- uses: docker/[email protected]
- id: docker_build
uses: docker/[email protected]
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}
platforms: |
linux/amd64
linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
- uses: ghalactic/github-release-from-tag@v5
with:
summaryEnabled: false
- uses: peter-evans/[email protected]
with:
repository: kineticcafe/${{ env.REPOSITORY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}