diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5642a6ef4..9a6d070b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -143,6 +143,13 @@ jobs: string: "${{ env.GITHUB_REF_SLUG }}" split-by: "." + - name: Check Tag + id: normal-version + run: | + if [[ ${{ env.GITHUB_REF_SLUG }} =~ ^[0-9]+\.[0-9]+$ ]]; then + echo ::set-output name=match::true + fi + - name: Get Image From Cache uses: actions/cache@v2 with: @@ -158,12 +165,17 @@ jobs: docker tag squidex-tmp squidex/squidex:${{ env.GITHUB_REF_SLUG }} docker tag squidex-tmp squidex/squidex:${{ steps.version.outputs._0 }} - - name: Push Tags + - name: Push Version run: | docker push squidex/squidex:latest docker push squidex/squidex:${{ env.GITHUB_REF_SLUG }} docker push squidex/squidex:${{ steps.version.outputs._0 }} + - name: Push Latest + run: | + docker push squidex/squidex:latest + if: steps.normal-version.outputs.match == 'true' + release: needs: publish runs-on: ubuntu-latest