From 6d4be73a4a0ea5623decd13c11ac70b0709bf3a4 Mon Sep 17 00:00:00 2001 From: Angelo Pirola Date: Tue, 3 Dec 2024 16:21:28 +0100 Subject: [PATCH] Create publish-autenticazionesvc-lb.yml --- .../publish-autenticazionesvc-lb.yml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/publish-autenticazionesvc-lb.yml diff --git a/.github/workflows/publish-autenticazionesvc-lb.yml b/.github/workflows/publish-autenticazionesvc-lb.yml new file mode 100644 index 0000000..c06a034 --- /dev/null +++ b/.github/workflows/publish-autenticazionesvc-lb.yml @@ -0,0 +1,34 @@ +name: Push AutenticazioneSvc LB to DockerHub + +on: + push: + branches: [ main ] + paths: + - 'src/AutenticazioneSvc/AutenticazioneSvc.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 Autenticazione Load Balancer + uses: docker/build-push-action@v6.9.0 + with: + context: . + file: ./src/AutenticazioneSvc/AutenticazioneSvc.LoadBalancer/Dockerfile + push: true + tags: ${{ secrets.DOCKER_USERNAME }}/gswcloudapp-configurazioni-lb:latest