diff --git a/.github/workflows/docker_publish.yml b/.github/workflows/docker_publish.yml index 4f02607..cd5ab94 100644 --- a/.github/workflows/docker_publish.yml +++ b/.github/workflows/docker_publish.yml @@ -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 \ No newline at end of file + tags: sologitops/glim:${{steps.set_version.outputs.no-v}} , sologitops/glim:latest \ No newline at end of file