Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroGlezC authored Jun 4, 2024
1 parent 760dda5 commit 726867a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,23 @@ jobs:
# az container start --name syg-frontend --resource-group syg-demo
# az container start --name syg-prometheus --resource-group syg-demo
# az container start --name syg-grafana --resource-group syg-demo

deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push images
run: |
docker build -f ./docker/database-mysql.Dockerfile -t alvaro251891/syg-docker-db:0.1.0-SNAPSHOT ./docker
docker push alvaro251891/syg-docker-db:0.1.0-SNAPSHOT
- name: Start Docker containers
run: docker run --name syg-docker-db -d alvaro251891/syg-docker-db:0.1.0-SNAPSHOT

0 comments on commit 726867a

Please sign in to comment.