From 5dae51986025bcb4f9bf769a621f49e750cf8433 Mon Sep 17 00:00:00 2001 From: fiddlededee Date: Mon, 11 Nov 2024 23:25:52 +0300 Subject: [PATCH] Fixed default branch name --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2885f09..7881caf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,16 +27,16 @@ jobs: - name: Build and test 2Bass run: mvn package - name: Build docker image - if: success() && github.ref == 'refs/heads/main' + if: success() && github.ref == 'refs/heads/dev' run: ./_build-docker.sh - name: Log in to Docker Hub - if: success() && github.ref == 'refs/heads/main' + if: success() && github.ref == 'refs/heads/dev' uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Push - if: success() && github.ref == 'refs/heads/main' + if: success() && github.ref == 'refs/heads/dev' run: | docker push curs/2bass:latest docker push curs/2bass:${{ steps.pom-version.outputs.version }}"