From 0df73b77ca8e3dca69948a7f3df391646e951c72 Mon Sep 17 00:00:00 2001 From: Angelo Pirola Date: Tue, 3 Dec 2024 16:27:11 +0100 Subject: [PATCH] Create publish-configurazionisvc-lb.yml --- .../publish-configurazionisvc-lb.yml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/publish-configurazionisvc-lb.yml diff --git a/.github/workflows/publish-configurazionisvc-lb.yml b/.github/workflows/publish-configurazionisvc-lb.yml new file mode 100644 index 0000000..01ff404 --- /dev/null +++ b/.github/workflows/publish-configurazionisvc-lb.yml @@ -0,0 +1,34 @@ +name: Push ConfigurazioniSvc LB to DockerHub + +on: + push: + branches: [ main ] + paths: + - 'src/ConfigurazioniSvc/ConfigurazioniSvc.LoadBalancer/**' + workflow_dispatch: + +jobs: + build: + name: Push images to DockerHub + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4.2.2 + + - name: Login to Docker Hub + uses: docker/login-action@v3.3.0 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3.7.1 + + - name: Build and push Configurazioni Load Balancer + uses: docker/build-push-action@v6.9.0 + with: + context: . + file: ./src/ConfigurazioniSvc/ConfigurazioniSvc.LoadBalancer/Dockerfile + push: true + tags: ${{ secrets.DOCKER_USERNAME }}/gswcloudapp-configurazioni-lb:latest