Skip to content

Commit

Permalink
update to checkout@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
keski authored Oct 3, 2024
1 parent ac9a7fd commit b94b2a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ jobs:
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

# Set up Docker Buildx for cross-platform builds (optional but recommended)
- name: Set up Docker Buildx
Expand All @@ -33,12 +36,9 @@ jobs:
- name: Build Docker image
run: |
cd hefquin-docker/
git fetch --tags
git log --oneline --decorate
git show
docker build -t ghcr.io/liusemweb/hefquin:latest .
# Get the tags for the current commit and add to image
echo "Find tags"
echo "Adding tags"
tags=$(git tag --points-at HEAD)
# Check if there are any tags
if [ -z "$tags" ]; then
Expand Down

0 comments on commit b94b2a9

Please sign in to comment.