Skip to content

Set upstream connection_name to hostname #137

Set upstream connection_name to hostname

Set upstream connection_name to hostname #137

Workflow file for this run

name: Docker images
on:
push:
branches:
- main
tags:
- "v*"
paths:
- "src/**"
- shard.lock
- Dockerfile
- .github/workflows/docker.yml
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: cloudamqp/amqproxy
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
type=ref,event=branch
type=ref,event=tag
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
cache-from: type=gha,scope=container
cache-to: type=gha,mode=max,scope=container
platforms: linux/amd64,linux/arm64
pull: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}