Skip to content

Merge pull request #466 from solarwinds/next #59

Merge pull request #466 from solarwinds/next

Merge pull request #466 from solarwinds/next #59

Workflow file for this run

name: Images
on:
push:
branches:
- main
paths:
- "docker/*.Dockerfile"
- ".github/workflows/images.yml"
workflow_dispatch:
jobs:
build-push:
runs-on: ubuntu-latest
strategy:
matrix:
image:
- 18-alpine3.17
- 18-amazonlinux2023
- 18-debian10
- 18-ubi8
- 18-ubuntu20.04
- 20-alpine
- 20-amazonlinux
- 20-debian
- 20-ubi
- 20-ubuntu
- 22-alpine
- 22-amazonlinux
- 22-debian
- 22-ubi
- 22-ubuntu
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: docker
file: docker/${{ matrix.image }}.Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{ github.repository }}/dev:${{ matrix.image }}
cache-from: type=gha
cache-to: type=gha,mode=max