Skip to content

Commit

Permalink
Trail run, DO NOT MERGE
Browse files Browse the repository at this point in the history
  • Loading branch information
COLDTURNIP committed Feb 13, 2025
1 parent 328fcb5 commit 3789d0f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
image_tag=${{ github.ref_name }}
elif [[ "$ref" =~ 'refs/heads/' ]]; then
image_tag="${branch}-head"
elif [[ "$ref" =~ 'refs/pull/' ]]; then
image_tag="$pr{{ github.event.pull_request.number }}"
fi
echo "version_major=${version_major}" >>$GITHUB_OUTPUT
Expand Down Expand Up @@ -67,16 +69,16 @@ jobs:
name: Build and push image
runs-on: ubuntu-latest
needs: build
if: ${{ startsWith(github.ref, 'refs/heads/') || startsWith(github.ref, 'refs/tags/') }}
#if: ${{ startsWith(github.ref, 'refs/heads/') || startsWith(github.ref, 'refs/tags/') }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
#- name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}

# longhornio/longhorn-manager image
- name: Build and publish image
Expand Down

0 comments on commit 3789d0f

Please sign in to comment.