File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- " master"
7
7
8
+ env :
9
+ TEST_TAG : ${{ secrets.DOCKERHUB_USERNAME }}/intervaltree:test
10
+ LATEST_TAG : ${{ secrets.DOCKERHUB_USERNAME }}/intervaltree:latest
11
+
8
12
jobs :
9
13
build :
10
14
runs-on : ubuntu-latest
@@ -21,11 +25,23 @@ jobs:
21
25
-
22
26
name : Set up Docker Buildx
23
27
uses : docker/setup-buildx-action@v2
28
+ -
29
+ name : Build and push
30
+ uses : docker/build-push-action@v4
31
+ with :
32
+ context : .
33
+ file : ./Dockerfile
34
+ load : true
35
+ tags : ${{ env.TEST_TAG }}
36
+ -
37
+ name : Test
38
+ run : docker run --rm ${{ env.TEST_TAG }}
24
39
-
25
40
name : Build and push
26
41
uses : docker/build-push-action@v4
27
42
with :
28
43
context : .
29
44
file : ./Dockerfile
30
45
push : true
31
- tags : ${{ secrets.DOCKERHUB_USERNAME }}/intervaltree:latest
46
+ tags : ${{ env.LATEST_TAG }}
47
+
You can’t perform that action at this time.
0 commit comments