From 68d98d70ccfbc27a8c1aca180fc8d42c328bb5a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Oc=C3=B3n-C=C3=A1rdenas?= Date: Sun, 10 Nov 2024 11:50:59 +0100 Subject: [PATCH] Create docker-image.yml Test the use of Github actions to automatically create a Container image that can be downloaded in my cluster --- .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..1affbde --- /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@v4 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag propedeutica/elixir-k8s-counter:$(date +%s)