Skip to content

add docker image building #2

add docker image building

add docker image building #2

Workflow file for this run

name: Build Docker Image
on:
push:
paths:
- build.sh
- .github/workflows/build.yml
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- arch: amd64
- arch: arm64
steps:
- name: Clone
uses: actions/checkout@v4
- name: Install Chisel
uses: shyim/chisel-installer@main
- name: Build image
run: ./build.sh ${{ matrix.arch }} --push
merge:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Login into Github Docker Registery
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- run: docker manifest create friendsofshopware/code-style:latest --amend friendsofshopware/code-style-amd64 --amend friendsofshopware/code-style-arm64
- run: docker manifest push friendsofshopware/code-style:latest