-
Notifications
You must be signed in to change notification settings - Fork 126
38 lines (32 loc) · 846 Bytes
/
ci.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: CI
on:
push:
branches-ignore:
- stable
- mainline
- rb/*
env:
IMAGE_NAME: nginx-brotli
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2.10.0
- name: Build amd64 image
uses: docker/build-push-action@v4.0.0
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
platforms: linux/amd64
push: false
tags: ${{ env.IMAGE_NAME }}
load: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Test
run: |
docker run --rm -v $(pwd)/tests.sh:/tests.sh --entrypoint sh nginx-brotli /tests.sh