-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create publish-configurazionisvc-lb.yml
- Loading branch information
1 parent
7aae02d
commit 0df73b7
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/[email protected] | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
|
||
- name: Build and push Configurazioni Load Balancer | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: ./src/ConfigurazioniSvc/ConfigurazioniSvc.LoadBalancer/Dockerfile | ||
push: true | ||
tags: ${{ secrets.DOCKER_USERNAME }}/gswcloudapp-configurazioni-lb:latest |