From 789b181ee71024f18612a013c9d384ca91c42e56 Mon Sep 17 00:00:00 2001 From: AGC <158510532+AlvaroGlezC@users.noreply.github.com> Date: Tue, 4 Jun 2024 19:44:48 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cf78358..ca79b3f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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