Skip to content

Prepare changelog for v0.55.0 (#1146) #146

Prepare changelog for v0.55.0 (#1146)

Prepare changelog for v0.55.0 (#1146) #146

Workflow file for this run

name: Publish Docker image and binaries
on:
push:
tags:
- 'v*'
jobs:
buildDockerImage:
if: github.repository == 'nerdswords/yet-another-cloudwatch-exporter'
name: Build docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ^1.21
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log into docker
env:
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
DOCKER_REGISTRY_URL: ghcr.io
DOCKER_USERNAME: ${{ github.actor }}
run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REGISTRY_URL
- name: Build and Publish docker image
run: docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t ghcr.io/nerdswords/yet-another-cloudwatch-exporter:${{github.ref_name}} --build-arg VERSION=${{github.ref_name}} --push .
- name: Build && release binaries
uses: docker://goreleaser/goreleaser:v1.16.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: release