-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.16 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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: Login into Github Docker Registery
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- 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 ghcr.io/friendsofshopware/code-style:latest --amend ghcr.io/friendsofshopware/code-style:latest-amd64 --amend ghcr.io/friendsofshopware/code-style:latest-arm64
- run: docker manifest push ghcr.io/friendsofshopware/code-style:latest