-
Notifications
You must be signed in to change notification settings - Fork 122
40 lines (35 loc) · 825 Bytes
/
Copy pathdocker.yml
File metadata and controls
40 lines (35 loc) · 825 Bytes
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
name: Docker
on:
pull_request:
paths:
- ".dockerignore"
- ".github/workflows/docker.yml"
- "Dockerfile"
- "**/*.go"
- "go.mod"
- "go.sum"
push:
branches:
- master
paths:
- ".dockerignore"
- ".github/workflows/docker.yml"
- "Dockerfile"
- "**/*.go"
- "go.mod"
- "go.sum"
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Build image
run: docker build --tag getjs:test .
- name: Smoke test stdin extraction
run: |
printf '%s\n' '<script src="/app.js"></script>' \
| docker run --rm --interactive getjs:test \
| grep --fixed-strings --line-regexp '/app.js'