Skip to content

Commit

Permalink
fix: still working on docker publis
Browse files Browse the repository at this point in the history
  • Loading branch information
doncicuto committed Sep 15, 2022
1 parent 780c310 commit f057974
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/docker_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,11 @@ jobs:
script: |
const tag = context.ref.substring(10)
const no_v = tag.replace('v', '')
const dash_index = no_v.lastIndexOf('-')
const no_dash = (dash_index > -1) ? no_v.substring(0, dash_index) : no_v
core.setOutput('tag', tag)
core.setOutput('no-v', no_v)
core.setOutput('no-dash', no_dash)
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/glim:${{steps.set_version.outputs.no-dash}} , ${{ secrets.DOCKER_HUB_USERNAME }}/myapp:latest
tags: sologitops/glim:${{steps.set_version.outputs.no-v}} , sologitops/glim:latest

0 comments on commit f057974

Please sign in to comment.