Sebastian Stehle
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
13 additions and
1 deletions
-
.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 |
|
|
|
|