-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.33 KB
/
release.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
44
45
46
47
48
49
50
51
name: docker image
on:
workflow_dispatch:
inputs:
CLANG_TIDY_VERSION:
description: "clang-tidy version"
required: true
default: "14.0.6"
type: string
jobs:
release:
runs-on: ${{ matrix.builder }}
strategy:
matrix:
include:
- builder: ubuntu-latest
platform: linux/amd64
- builder: buildjet-8vcpu-ubuntu-2204-arm
platform: linux/arm64
steps:
- name: Checkout Code
uses: actions/checkout@v1
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
file: Dockerfile
push: true
platforms: ${{ matrix.platform }}
build-args: |
CLANG_TIDY_VERSION=${{ inputs.CLANG_TIDY_VERSION }}
tags: |
ghcr.io/${{ github.repository_owner }}/clang-tidy:latest
ghcr.io/${{ github.repository_owner }}/clang-tidy:${{ inputs.CLANG_TIDY_VERSION }}