Skip to content

fix: follow environment-document pagination Link headers (#11) #3

fix: follow environment-document pagination Link headers (#11)

fix: follow environment-document pagination Link headers (#11) #3

name: Publish Docker Image
on:
push:
tags:
- '*'
jobs:
build-dockerhub:
runs-on: ubuntu-latest
name: Build and Publish to DockerHub
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
flagsmith/edge-proxy-rs
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=ref,event=branch
- 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
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME_WRITE }}
password: ${{ secrets.DOCKERHUB_TOKEN_WRITE }}
- name: Build and push
uses: docker/build-push-action@v6
id: build
with:
push: true
platforms: linux/amd64,linux/arm64
file: Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Image digest
run: echo ${{ steps.build.outputs.digest }}