Skip to content

v1.0.0: Initial release of application #1

v1.0.0: Initial release of application

v1.0.0: Initial release of application #1

Workflow file for this run

name: Publish Docker image
on:
release:
types:
- published
jobs:
build-and-push:
name: Build and push Docker Image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: linux/arm64,linux/amd64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/arm64,linux/amd64
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
push: true
tags: |
akazakou/aws-cloudwatch-metrics-http-gateway:${{ github.event.release.tag_name }}
akazakou/aws-cloudwatch-metrics-http-gateway:latest
platforms: linux/arm64,linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Update Docker Hub Repository Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: akazakou/aws-cloudwatch-metrics-http-gateway
short-description: ${{ github.event.repository.description }}
enable-url-completion: true