Skip to content

Build dev image

Build dev image #6

Workflow file for this run

# This is the temporary workflow for building and pushing imgproxy-base images with v4-dev tag.
name: Build dev image
on:
workflow_dispatch:
inputs:
tag:
description: "The tag to push the image with"
required: true
default: "v4-dev"
concurrency:
group: build-v4-dev-${{ github.ref }}
cancel-in-progress: true
env:
BASE_IMAGE_NAME: ghcr.io/imgproxy/imgproxy-base
jobs:
build:
if: github.repository_owner == 'imgproxy'
strategy:
matrix:
build:
- arch: amd64
dockerPlatform: linux/amd64
image: linux-5.0
- arch: arm64
dockerPlatform: linux/arm64/v8
image: arm-3.0
runs-on:
- codebuild-imgproxy-${{ github.run_id }}-${{ github.run_attempt }}
- image:${{ matrix.build.image }}
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
tags: ${{ env.BASE_IMAGE_NAME }}:${{ github.event.inputs.tag }}-${{ matrix.build.arch }}
platforms: ${{ matrix.build.dockerPlatform }}
provenance: false
push: true
push_manifests:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push manifests
run: |
docker buildx imagetools create -t ${{ env.BASE_IMAGE_NAME }}:${{ github.event.inputs.tag }} ${{ env.BASE_IMAGE_NAME }}:${{ github.event.inputs.tag }}-amd64 ${{ env.BASE_IMAGE_NAME }}:${{ github.event.inputs.tag }}-arm64