Skip to content

Added multiarch builds #4

Added multiarch builds

Added multiarch builds #4

Workflow file for this run

name: Build Docker Image
on: [push]
env:
REGISTRY: ghcr.io
IMAGE_TAG: ${{ env.REGISTRY }}/${{ github.repository }}:latest

Check failure on line 7 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build Docker Image

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 7, Col: 14): Unrecognized named-value: 'env'. Located at position 1 within expression: env.REGISTRY
jobs:
build-image:
name: Build and push Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
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@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.IMAGE_TAG }}
platforms: linux/amd64,linux/arm/v7,linux/arm64
- name: Image digests
run: |
echo image digest: ${{ steps.docker_build.outputs.digest }}