diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 3db2fb663..d2fc3a120 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -24,7 +24,7 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Login to GitHub Container Registry - if: ${{ github.ref == 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/dev' }} uses: docker/login-action@v2 with: registry: ghcr.io @@ -34,8 +34,8 @@ jobs: - name: Docker Build-Tag-Push my-app run: | ./gradlew bootBuildImage - docker tag my-app:1.0.0-SNAPSHOT ${{ secrets.DOCKERHUB_USERNAME }}/my-app:latest - docker push ${{ secrets.DOCKERHUB_USERNAME }}/my-app:latest + docker tag gamma:1.0.0-SNAPSHOT ghcr.io/cthit/gamma:latest + docker push ghcr.io/cthit/gamma:latest working-directory: ./app - name: Cleanup Gradle Cache