Skip to content

Commit

Permalink
Test commit
Browse files Browse the repository at this point in the history
Goals
- checks automatic push
- checks commit hash
  • Loading branch information
henrybear327 committed Feb 20, 2024
1 parent 04f2511 commit d04f53c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ jobs:

# https://docs.docker.com/build/ci/github-actions/multi-platform/
docker-hub-build-and-publish:
needs: [detect-code-related-file-changes]
if: needs.detect-code-related-file-changes.outputs.has_code_related_changes == 'true'
# needs: [detect-code-related-file-changes]
# if: needs.detect-code-related-file-changes.outputs.has_code_related_changes == 'true'
runs-on: ubuntu-22.04
steps:
- name: Check out the repo
Expand All @@ -142,17 +142,18 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
if: ${{ github.event_name == 'push'}}
# if: ${{ github.event_name == 'push'}}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
- name: Get short commit SHA1
if: ${{ github.event_name == 'push'}}
# if: ${{ github.event_name == 'push'}}
shell: bash
run: |
echo "short_hash=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
echo "$short_hash"
- name: Build and push
if: ${{ github.event_name == 'push'}}
# if: ${{ github.event_name == 'push'}}
uses: docker/build-push-action@v5
with:
push: true
Expand Down

0 comments on commit d04f53c

Please sign in to comment.