-
Notifications
You must be signed in to change notification settings - Fork 15
65 lines (60 loc) · 1.84 KB
/
arm64.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: arm64
on:
workflow_dispatch:
inputs:
plugins:
description: "Plugins to build (i.e. connect-go:latest, connect-go, grpc/java:v1.53.0)"
default: ''
type: string
env:
DOCKER_ORG: "ghcr.io/bufbuild"
# Ref: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions
permissions:
actions: read
contents: read
# packages: write
concurrency: arm64-${{ github.ref }}
defaults:
run:
shell: bash
jobs:
arm64:
runs-on: ubuntu-latest-4-cores
steps:
- name: set PLUGINS from workflow inputs
if: ${{ inputs.plugins }}
run: echo "PLUGINS=${{ inputs.plugins }}" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
check-latest: true
- name: Get buf version
shell: bash
run: |
echo BUF_VERSION=$(go list -m -json github.com/bufbuild/buf | jq -r .Version) >> $GITHUB_ENV
- name: Install buf cli
run: |
go install github.com/bufbuild/buf/cmd/buf@${BUF_VERSION}
- name: Login to Docker Hub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@f7ce87c1d6bead3e36075b2ce75da1f6cc28aaca
# - name: Login to GitHub Container Registry
# if: github.repository == 'bufbuild/plugins'
# uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
- name: Test
run: make test
env:
DOCKER_BUILD_EXTRA_ARGS: '--platform linux/arm64'