Skip to content

Commit

Permalink
Fix versionless
Browse files Browse the repository at this point in the history
  • Loading branch information
Kutu committed Feb 2, 2025
1 parent 39caa1d commit c6b6ead
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/versionless-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ jobs:
with:
github_access_token: "${{ secrets.GITHUB_TOKEN }}"

- run: just build-docker-image documentation/versionless
- run: just publish-docker-image documentation/versionless
- run: just build-docker-image docker/documentation/versionless
- run: just publish-docker-image docker/documentation/versionless
10 changes: 0 additions & 10 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,21 +108,11 @@ new-project project_name:
build-docker-image tag:
let tag = ("{{tag}}" | parse "{action}/{project}/{version}").0

if $tag.action != "docker" {
print "Error: The given Git tag is not for a 'docker' action"
exit 1
}

just -f $"./projects/($tag.project)/justfile" build-docker-image $tag.version

# Publish to ghcr.io the Docker image of a project given a git tag. Mostly used in the CI/CD
[script]
publish-docker-image tag:
let tag = ("{{tag}}" | parse "{action}/{project}/{version}").0

if $tag.action != "docker" {
print "Error: The given Git tag is not for a 'docker' action"
exit 1
}

docker push $"ghcr.io/kutu-dev/($tag.project):($tag.version)"

0 comments on commit c6b6ead

Please sign in to comment.