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