Skip to content

Commit 64d1a89

Browse files
committed
fix up
Signed-off-by: Sam Yuan <[email protected]>
1 parent ed26d8d commit 64d1a89

File tree

2 files changed

+38
-35
lines changed

2 files changed

+38
-35
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,41 @@ permissions:
1111
contents: read
1212

1313
jobs:
14+
15+
test-docker:
16+
name: Docker Tests
17+
runs-on: ubuntu-latest
18+
19+
# Run a local registry to push to
20+
services:
21+
registry:
22+
image: registry:2
23+
ports:
24+
- 5001:5000
25+
26+
env:
27+
TEST_TAG: localhost:5001/sustainable_computing_io/aws_ec2_self_hosted_runner:latest
28+
29+
steps:
30+
- name: Checkout
31+
id: checkout
32+
uses: actions/checkout@v4
33+
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 }}
48+
1449
unitpreOS:
1550
strategy:
1651
matrix:
@@ -25,5 +60,6 @@ jobs:
2560
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
2661
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2762
GH_SELF_HOSTED_RUNNER_TOKEN: ${{ secrets.GH_SELF_HOSTED_RUNNER_TOKEN }}
63+
AWS_SECURITY_GROUP_ID: ${{ secrets.AWS_SECURITY_GROUP_ID }}
2864
AMI_ID: ${{matrix.AMI_ID}}
2965

.github/workflows/ci_unit.yml

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
required: true
1111
AWS_SECRET_ACCESS_KEY:
1212
required: true
13+
AWS_SECURITY_GROUP_ID:
14+
required: true
1315
AMI_ID:
1416
required: true
1517
GH_SELF_HOSTED_RUNNER_TOKEN:
@@ -19,41 +21,6 @@ permissions:
1921
contents: read
2022

2123
jobs:
22-
test-docker:
23-
name: Docker Tests
24-
runs-on: ubuntu-latest
25-
26-
# Run a local registry to push to
27-
services:
28-
registry:
29-
image: registry:2
30-
ports:
31-
- 5001:5000
32-
33-
env:
34-
TEST_TAG: localhost:5001/sustainable_computing_io/aws_ec2_self_hosted_runner:latest
35-
36-
steps:
37-
- name: Checkout
38-
id: checkout
39-
uses: actions/checkout@v4
40-
41-
- name: Setup Docker BuildX
42-
id: setup-buildx
43-
uses: docker/setup-buildx-action@v3
44-
with:
45-
install: true
46-
driver-opts: network=host
47-
48-
- name: Build the Container
49-
id: build
50-
uses: docker/build-push-action@v5
51-
with:
52-
context: .
53-
push: true
54-
tags: ${{ env.TEST_TAG }}
55-
56-
5724
setup-runner:
5825
name: GitHub Actions Test create instance
5926
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)