Some checks failed
Build and Publish Docker Images / setup (push) Successful in 59s
Build and Publish Docker Images / build (server.Dockerfile, auto-transcoder/server) (push) Failing after 22s
Build and Publish Docker Images / build (worker.Dockerfile, auto-transcoder/worker) (push) Failing after 10s
44 lines
1 KiB
YAML
44 lines
1 KiB
YAML
name: Build and Publish Docker Images
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
setup:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
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
|
|
|
|
build:
|
|
needs: setup
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- dockerfile: worker.Dockerfile
|
|
image-name: auto-transcoder/worker
|
|
- dockerfile: server.Dockerfile
|
|
image-name: auto-transcoder/server
|
|
steps:
|
|
- name: Build and Push Image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: ${{ matrix.dockerfile }}
|
|
platforms: linux/amd64,linux/arm64
|
|
push: true
|
|
tags: |
|
|
git.brmartin.co.uk/${{ matrix.image-name }}:${{ github.ref_name }}
|
|
git.brmartin.co.uk/${{ matrix.image-name }}:${{ github.sha }}
|