-
Notifications
You must be signed in to change notification settings - Fork 147
99 lines (95 loc) · 2.56 KB
/
Copy pathdocker_pr.yml
File metadata and controls
99 lines (95 loc) · 2.56 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Docker CI
on:
push:
branches:
- main
paths-ignore:
- '**/*.md'
pull_request:
branches:
- main
jobs:
build_browser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.13
uses: actions/setup-python@v4
with:
python-version: '3.13'
- name: Use Node.js
uses: actions/setup-node@v5
with:
node-version: 24.x
cache: 'npm'
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install uv
uv pip install wheel --python 3.13 --system --verbose
uv pip install -r Browser/dev-requirements.txt --python 3.13 --system
uv pip install -r pyproject.toml --python 3.13 --system
inv deps
- name: Build proto
run: |
inv protobuf
- name: Build
run: |
inv build
- name: Build the wheel
run: |
inv create-package
- name: Upload Browser wheel
uses: actions/upload-artifact@v4
with:
name: browser-wheel
path: dist/*.whl
- name: Create demo app
run: |
inv demo-app
- name: Pack demo app
uses: actions/upload-artifact@v4
with:
name: demoapp
path: zip_results/demoapp
docker-image:
runs-on: ubuntu-latest
needs: build_browser
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- uses: actions/checkout@v5
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/marketsquare/robotframework-browser/rfbrowser-dev
- name: Download browser wheel
uses: actions/download-artifact@v5
with:
name: browser-wheel
path: docker/dist
- name: Debug ls
run: |
ls -l docker/dist
echo ===========================
ls -l docker
echo ===========================
pwd
- name: Push to GitHub Packages
uses: docker/build-push-action@v6
with:
context: .
file: docker/Dockerfile.dev_pr
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true