Skip to content

feat(Docker): expose a SKIP_X_FORWARD_HEADERS option (#75) #66

feat(Docker): expose a SKIP_X_FORWARD_HEADERS option (#75)

feat(Docker): expose a SKIP_X_FORWARD_HEADERS option (#75) #66

Workflow file for this run

name: Release CI
on:
push:
branches:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
setup-release:
name: Run Release Please action
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Run release please
uses: googleapis/release-please-action@v4
id: release
with:
release-type: node
build:
name: Build & push docker image
runs-on: ubuntu-latest
needs: setup-release
if: needs.setup-release.outputs.release_created
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: type=match,pattern=v(.*),group=1,value=${{ needs.setup-release.outputs.tag_name }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
env:
DOCKER_BUILD_SUMMARY: false
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}