From fce94b1122719e6d273799ae9008fc3c4a512489 Mon Sep 17 00:00:00 2001 From: Roza Chatzigeorgiou <32936862+rozachatz@users.noreply.github.com> Date: Mon, 30 Sep 2024 16:15:25 +0300 Subject: [PATCH] Create docker-images.yml --- .github/workflows/docker-images.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/docker-images.yml diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml new file mode 100644 index 0000000..1ae9c96 --- /dev/null +++ b/.github/workflows/docker-images.yml @@ -0,0 +1,21 @@ +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 for moneytransfer microservice + run: docker build ./moneytransfer --file Dockerfile --tag money-transfer-app:$(date +%s) + + - name: Build Docker image for notifications microservice + run: docker build ./notifications --file Dockerfile --tag notifications-app:$(date +%s)