Skip to content

Commit

Permalink
Fix: docker publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
dabico committed Feb 21, 2024
1 parent 9d6a7a0 commit a9d6a15
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ jobs:
uses: actions/github-script@v7
with:
script: |
const name = context.repo.repo
const patch = context.ref.substring(11)
const parts = patch.split('.')
const minor = `${parts[0]}.${parts[1]}`
const major = parts[0]
core.setOutput('repo-name', name)
core.setOutput('tag-patch', patch)
core.setOutput('tag-minor', minor)
core.setOutput('tag-major', major)
Expand All @@ -33,7 +35,7 @@ jobs:
with:
push: true
tags: |
seart/${{ context.repo.repo }}:latest
seart/${{ context.repo.repo }}:${{ steps.meta.outputs.tag-major }}
seart/${{ context.repo.repo }}:${{ steps.meta.outputs.tag-minor }}
seart/${{ context.repo.repo }}:${{ steps.meta.outputs.tag-patch }}
seart/${{ steps.meta.outputs.repo_name }}:latest
seart/${{ steps.meta.outputs.repo_name }}:${{ steps.meta.outputs.tag-major }}
seart/${{ steps.meta.outputs.repo_name }}:${{ steps.meta.outputs.tag-minor }}
seart/${{ steps.meta.outputs.repo_name }}:${{ steps.meta.outputs.tag-patch }}

0 comments on commit a9d6a15

Please sign in to comment.