From d58baaf0f87ac16b4b400a8b8e2de2577f6d8300 Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Mon, 20 Jan 2025 13:58:20 +0100 Subject: [PATCH] added workflow to deploy docker images on release --- .github/workflows/deploy_docker_images.yml | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/deploy_docker_images.yml diff --git a/.github/workflows/deploy_docker_images.yml b/.github/workflows/deploy_docker_images.yml new file mode 100644 index 0000000..ca1f025 --- /dev/null +++ b/.github/workflows/deploy_docker_images.yml @@ -0,0 +1,28 @@ +name: 🐳 Docker Image Deployment + +on: + workflow_dispatch: + release: + types: [published] + +jobs: + build: + name: Push docker images to docker hub + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v4 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build processor image + id: build-processor-docker-image + run: make build -C ./services/processor + + - name: Push processor image + id: push-processor-docker-image + run: make dist -C ./services/processor