-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (36 loc) · 1.22 KB
/
dockerimage.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
name: Docker Image CI
on:
push:
branches: [ master ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# https://github.com/marketplace/actions/build-and-push-docker-images
- name: Build the Docker image
uses: docker/build-push-action@v3
with:
context: .
tags: macbre/curl-http3
cache-from: |
ghcr.io/macbre/curl-http3:latest
- name: Inspect images
run: |
docker images | head -n3
- name: curl --version
run: |
docker run -t macbre/curl-http3 curl --version
- name: Is brotli supported?
run: |
docker run --rm macbre/curl-http3 curl -sIL https://httpbin.org/brotli | grep -i 'content-encoding: br'
- name: Is gzip supported?
run: |
docker run --rm macbre/curl-http3 curl -sIL https://httpbin.org/gzip | grep -i 'content-encoding: gzip'
- name: Is http/2 supported?
run: |
docker run --rm macbre/curl-http3 curl -sIL https://httpbin.org/get | grep -i 'HTTP/2'
- name: Is http/3 supported?
run: |
docker run --rm macbre/curl-http3 curl -sIL https://blog.cloudflare.com --http3 -H 'user-agent: mozilla' | grep 'HTTP/3'