From 73cc604e648a9bc0efdd5116b930bd022de9a923 Mon Sep 17 00:00:00 2001 From: Anson <58594437+AnsonDev42@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:13:16 +0100 Subject: [PATCH] Create docker-image.yml (#6) --- .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..1db0bf3 --- /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: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag uptime-monitor:$(date +%s)