File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 6
6
7
7
jobs :
8
8
build :
9
+ env :
10
+ context : redhat-beyond/beyond
11
+ image_name : beyond
9
12
runs-on : ubuntu-18.04
10
13
steps :
11
14
- name : Checkout source tree
35
38
tar -xzf geckodriver-v0.26.0-linux64.tar.gz -C geckodriver
36
39
pip install -r tests/requirements-test.txt
37
40
38
- - name : Build the docker-compose stack
39
- run : docker-compose up -d
41
+ # - name: Build the docker-compose stack
42
+ # run: docker-compose up -d
43
+
44
+ - name : Build image
45
+ uses : docker/build-push-action@v2
46
+ with :
47
+ path : ${{ env.context }}
48
+ push : false
49
+ repository : ${{ env.image_name }}
50
+
51
+ - name : Test image
52
+ run : |
53
+ echo "Running: docker run -p 5000:5000 ${image_name}"
54
+ docker run -p 5000:5000 ${image_name}
40
55
41
56
- name : Execute tests
42
57
run : |
Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ COPY . .
12
12
RUN pip3 install -r requirements.txt
13
13
EXPOSE 5000
14
14
15
- ENTRYPOINT python3 app.py runserver > web-application.log
15
+ ENTRYPOINT python3 app.py runserver > web-application.log
Original file line number Diff line number Diff line change 1
1
version : ' 3.9'
2
2
services :
3
3
beyond :
4
- build : .
4
+ image : quay.io/redhat-beyond/beyond
5
5
container_name : beyond
6
6
ports :
7
7
- " 5000:5000"
You can’t perform that action at this time.
0 commit comments