forked from Gelbpunkt/gateway-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 944 Bytes
/
publish.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
name: Create and publish a Docker image
on:
push:
branches: ["martine"]
workflow_dispatch:
jobs:
build-docker-images:
strategy:
matrix:
target-cpu: ["skylake", "znver3", "znver2", "x86-64"]
env:
REGISTRY: ghcr.io
IMAGE_NAME: gateway-proxy
runs-on: ubuntu-latest
name: Build for ${{ matrix.target-cpu }}
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build and push Docker image - ${{ matrix.target-cpu }}
uses: whoan/docker-build-with-cache-action@v6
with:
username: MartineBot
password: "${{ secrets.GITHUB_TOKEN }}"
registry: "ghcr.io"
image_name: gateway-proxy
build_extra_args: '{"--build-arg": "TARGET_CPU=${{ matrix.target-cpu }}"}'
image_tag: "latest,${{ github.sha }},${{ matrix.target-cpu }}"