Skip to content

Commit

Permalink
Merge pull request #15 from gizmoguy/gha-workflows
Browse files Browse the repository at this point in the history
Update github action workflows.
  • Loading branch information
gizmoguy authored May 25, 2023
2 parents e2edb45 + 7cddd89 commit 0dc6430
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
docker-image:
name: "Build docker image"
runs-on: ubuntu-latest
environment:
name: "release"
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test workflow

on: [push, pull_request]

jobs:
docker-image:
name: "Build docker image"
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up qemu
uses: docker/setup-qemu-action@v2
with:
platforms: all
- name: Set up docker buildx
id: buildx
uses: docker/setup-buildx-action@v2
with:
version: latest
- name: Run buildx
run: |
docker buildx build \
--tag faucet/test-host:test \
--platform linux/386,linux/amd64 \
--file Dockerfile \
.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# This host is built on top of ubuntu which is the same as the base-test image so should be most stable.
#

FROM ubuntu:22.04
FROM debian:bookworm

RUN apt-get update \
&& apt-get upgrade -y \
Expand Down

0 comments on commit 0dc6430

Please sign in to comment.