v2.15.0 #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This action pushes new amd64 and arm64 docker images to the Docker and GitHub | |
# registries on every new release of the project. | |
# | |
# Cobbled together from these sources: | |
# - https://github.com/docker/build-push-action/#usage | |
# - https://docs.github.com/en/actions/publishing-packages/publishing-docker-images | |
name: Release | |
"on": | |
release: | |
types: [published] | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: docker/setup-qemu-action@v2 | |
- uses: docker/setup-buildx-action@v2 | |
- uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- uses: docker/metadata-action@v4 | |
with: | |
images: | | |
mccutchen/go-httpbin | |
id: meta | |
- uses: docker/build-push-action@v3 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |