forked from Webperf-se/webperf_core
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (42 loc) · 1.53 KB
/
update-docker.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
name: "Docker - Update to latest version(s)"
on:
workflow_dispatch:
push:
paths:
- '**update-docker.yml'
- 'package.json'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
config: ["SOFTWARE_GITHUB_ADADVISORY_DATABASE_PATH=advisory_database"]
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Setup dependencies using pip
run: pip install -r requirements.txt
- name: Ensure up to date Dockerfile
run: python tools/verify_result.py -d ${{ matrix.config }},GITHUB_API_KEY=${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
run: docker build -t "webperf-core:latest" .
- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
commit-message: Updating Dockerfile with latest browsers
branch: dockerfile-latest-browsers
title: Updating Dockerfile to latest browsers
body: |
This pull request is used to make it easier to keep the Dockerfile up to date.
Following files may be touched:
- Dockerfile
assignees: 7h3Rabbit
reviewers: 7h3Rabbit
add-paths: |
Dockerfile