Skip to content

Commit

Permalink
Strip leading 'v' from git tag for use in image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
scottfrederick committed May 15, 2024
1 parent 50aa885 commit 8eb279c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/package-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:
cd builder
ORG="ghcr.io/${GITHUB_REPOSITORY_OWNER}"
REPO=$(echo "${{ github.repository }}" | sed 's/^.*\///')
VERSION="${{ github.ref_name }}"
TAG="${{ github.ref_name }}"
VERSION="${TAG#v}"
PACKAGE="${ORG}/${REPO}"
pack builder create "${PACKAGE}:${VERSION}" --config builder.toml --publish
cd ..
Expand Down
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.classpath
.project
.settings/
.idea
*.iml
*.ipr
*.iws
.vscode
.*.md.html
.DS_Store
.attach_pid*
.sts4-cache

0 comments on commit 8eb279c

Please sign in to comment.