Luca Florio 6 лет назад
Родитель
Сommit
570479a02f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      .github/workflows/dockerimage.yml

+ 1 - 1
.github/workflows/dockerimage.yml

@@ -12,7 +12,7 @@ jobs:
     - uses: actions/checkout@v1
     - name: Set image tag
       shell: bash
-      run: echo "##[set-output name=tag;]$(if [ $(echo ${GITHUB_REF#refs/heads/}) = 'master' ]; then $(echo 'latest'); else $(echo ${GITHUB_REF#refs/heads/}); fi)"
+      run: echo "##[set-output name=tag;]$(if [ ${GITHUB_REF#refs/heads/} = 'master' ]; then latest; else ${GITHUB_REF#refs/heads/}; fi)"
       id: set_tag
     - name: Build the Docker image
       run: docker build . --file Dockerfile --tag elleflorio/svn-docker:${{ steps.set_tag.outputs.branch }}