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 f86f6bc commit 789b181
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,16 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Remove existing images
run: |
docker rmi -f alvaro251891/syg-docker-db:0.1.0-SNAPSHOT || true
- name: Build and push images
run: |
docker build -f ./docker/database-mysql.Dockerfile -t alvaro251891/wiq_es1d/syg-docker-db:0.1.0-SNAPSHOT ./docker
docker push alvaro251891/wiq_es1d/syg-docker-db:0.1.0-SNAPSHOT
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/wiq_es1d/syg-docker-db:0.1.0-SNAPSHOT
# run: docker run --name syg-docker-db -d alvaro251891/syg-docker-db:0.1.0-SNAPSHOT

0 comments on commit 789b181

Please sign in to comment.