Skip to content

Commit 0dc6430

Browse files
authored
Merge pull request #15 from gizmoguy/gha-workflows
Update github action workflows.
2 parents e2edb45 + 7cddd89 commit 0dc6430

3 files changed

Lines changed: 30 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
docker-image:
1010
name: "Build docker image"
1111
runs-on: ubuntu-latest
12+
environment:
13+
name: "release"
1214
steps:
1315
- name: Checkout repo
1416
uses: actions/checkout@v3

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test workflow
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
docker-image:
7+
name: "Build docker image"
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout repo
11+
uses: actions/checkout@v3
12+
- name: Set up qemu
13+
uses: docker/setup-qemu-action@v2
14+
with:
15+
platforms: all
16+
- name: Set up docker buildx
17+
id: buildx
18+
uses: docker/setup-buildx-action@v2
19+
with:
20+
version: latest
21+
- name: Run buildx
22+
run: |
23+
docker buildx build \
24+
--tag faucet/test-host:test \
25+
--platform linux/386,linux/amd64 \
26+
--file Dockerfile \
27+
.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# This host is built on top of ubuntu which is the same as the base-test image so should be most stable.
99
#
1010

11-
FROM ubuntu:22.04
11+
FROM debian:bookworm
1212

1313
RUN apt-get update \
1414
&& apt-get upgrade -y \

0 commit comments

Comments
 (0)