forked from costela/docker-volume-hetzner
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 941 Bytes
/
main.yaml
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
name: test
on:
- push
- pull_request
jobs:
test:
env:
LATEST_GO: 1.21.x # version used for release
strategy:
matrix:
go: [ 1.21.x ]
os: [ ubuntu-latest ]
arch:
- arm64
- amd64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- run: make test
test_build:
runs-on: ubuntu-latest
strategy:
matrix:
arch:
- arm64
- amd64
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- run: make create PLUGIN_NAME=ghcr.io/${{ github.repository }} PLUGIN_TAG=$(shell git describe --tags --exact-match 2> /dev/null || echo dev)-${{ matrix.arch }}