From 4de48dacdcae7513249b42d6cc99586c46ec6969 Mon Sep 17 00:00:00 2001 From: Lauro Correia Silveira Date: Wed, 15 Nov 2023 11:22:07 +0100 Subject: [PATCH] Create docker-image.yml Add GitHub Action Create docker image --- .github/workflows/docker-image.yml | 15 +++++++++++++++ 1 file changed, 15 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..489af39 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,15 @@ +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 my-image-name:$(date +%s)