diff --git a/.github/workflows/buildandpush.yml b/.github/workflows/buildandpush.yml index 8957066..6e5fda7 100644 --- a/.github/workflows/buildandpush.yml +++ b/.github/workflows/buildandpush.yml @@ -43,11 +43,11 @@ jobs: - name: commit and push setup.sh run: | - git config --local user.name actions-user - git config --local user.email "actions@github.com" - git add setup.sh - git commit -m "Updated setup.sh with ${{ env.BDBVERSION }}-${{ env.BRIDGEDBWSVERSION }}" - git push origin master + git config --local user.name actions-user + git config --local user.email "actions@github.com" + git add setup.sh + git diff --cached --quiet || git commit -m "Updated setup.sh with ${{ env.BDBVERSION }}-${{ env.BRIDGEDBWSVERSION }}" + git push origin master echo New release tag: ${{ env.BDBWSVERSION }} env: @@ -57,6 +57,21 @@ jobs: runs-on: ubuntu-latest needs: update-version steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up QEMU uses: docker/setup-qemu-action@v2