Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rerost committed Jul 21, 2024
1 parent 3d36260 commit 76581aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 0 additions & 1 deletion Dockerfile.actions

This file was deleted.

13 changes: 11 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,23 @@ current_commit=$(git rev-parse HEAD)
# Actions が利用できるDocker Imageの制限に対応するため。 https://stackoverflow.com/questions/76403845/when-accessing-github-marketplace-actions-i-am-seeing-getting-error-should-be-e
echo "tag: $tag"
echo "current_commit: $current_commit"

# Create working branch
git checkout master
git pull origin master
git checkout -b releaser/$current_commit
# Only mac
sed -i '' "s/TAG/$tag/g" Dockerfile.actions

# Create Dockerfile
echo "FROM ghcr.io/rerost/issue-creator:${tag}" > Dockerfile.actions
git add Dockerfile.actions
git commit -m "Generate docker file"

# Create Tag
git tag -a $tag -m "$tag"
git push origin $tag
echo "RELASED"

# Clean
git checkout master
git branch -D releaser/$current_commit
echo "CLEANED"

0 comments on commit 76581aa

Please sign in to comment.