File tree Expand file tree Collapse file tree 1 file changed +28
-29
lines changed Expand file tree Collapse file tree 1 file changed +28
-29
lines changed Original file line number Diff line number Diff line change @@ -11,40 +11,39 @@ permissions:
1111 contents : read
1212
1313jobs :
14+ test-docker :
15+ name : Docker Tests
16+ runs-on : ubuntu-latest
1417
15- test-docker :
16- name : Docker Tests
17- runs-on : ubuntu-latest
18+ # Run a local registry to push to
19+ services :
20+ registry :
21+ image : registry:2
22+ ports :
23+ - 5001:5000
1824
19- # Run a local registry to push to
20- services :
21- registry :
22- image : registry:2
23- ports :
24- - 5001:5000
25+ env :
26+ TEST_TAG : localhost:5001/sustainable_computing_io/aws_ec2_self_hosted_runner:latest
2527
26- env :
27- TEST_TAG : localhost:5001/sustainable_computing_io/aws_ec2_self_hosted_runner:latest
28+ steps :
29+ - name : Checkout
30+ id : checkout
31+ uses : actions/checkout@v4
2832
29- steps :
30- - name : Checkout
31- id : checkout
32- uses : actions/checkout@v4
33+ - name : Setup Docker BuildX
34+ id : setup-buildx
35+ uses : docker/setup-buildx-action@v3
36+ with :
37+ install : true
38+ driver-opts : network=host
3339
34- - name : Setup Docker BuildX
35- id : setup-buildx
36- uses : docker/setup-buildx-action@v3
37- with :
38- install : true
39- driver-opts : network=host
40-
41- - name : Build the Container
42- id : build
43- uses : docker/build-push-action@v5
44- with :
45- context : .
46- push : true
47- tags : ${{ env.TEST_TAG }}
40+ - name : Build the Container
41+ id : build
42+ uses : docker/build-push-action@v5
43+ with :
44+ context : .
45+ push : true
46+ tags : ${{ env.TEST_TAG }}
4847
4948 unitpreOS :
5049 strategy :
You can’t perform that action at this time.
0 commit comments