From f0147f7d240b0b7491fad30855717b3eb9ba1b15 Mon Sep 17 00:00:00 2001 From: Robert Dunmire III Date: Sat, 10 Jun 2023 22:02:58 -0400 Subject: [PATCH 1/2] Create docker-image.yml --- .github/workflows/docker-image.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..f0c9113 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,18 @@ +name: Docker Image CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + + runs-on: debian:bookworm-slim + + steps: + - uses: actions/checkout@v3 + - name: Build the Docker image + run: docker build . --file ./docker/Dockerfile --tag porcupine-pipeline:$(date +%s) From b372a959dded497179b7633ee1a2c1613fdaa815 Mon Sep 17 00:00:00 2001 From: Robert Dunmire III Date: Mon, 12 Jun 2023 07:31:15 -0400 Subject: [PATCH 2/2] Update docker-image.yml --- .github/workflows/docker-image.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index f0c9113..93703b3 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -3,15 +3,12 @@ name: Docker Image CI on: push: branches: [ "main" ] - pull_request: - branches: [ "main" ] + jobs: build: - - runs-on: debian:bookworm-slim - + runs-on: self-hosted steps: - uses: actions/checkout@v3 - name: Build the Docker image