mirror of
https://github.com/Wonderfall/docker-synapse.git
synced 2024-10-01 05:25:37 -04:00
Re-add version tags
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
0b601a31a5
commit
8b58e071b1
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -29,6 +29,11 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Extract version for tags
|
||||
run: |
|
||||
echo "FULL_VERSION=$(grep -oP '(?<=SYNAPSE_VERSION=).*' Dockerfile)" >> $GITHUB_ENV
|
||||
echo "MAJOR_VERSION=$(grep -oP '(?<=SYNAPSE_VERSION=).*' Dockerfile | head -c5)" >> $GITHUB_ENV
|
||||
|
||||
- name: Install cosign
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: sigstore/cosign-installer@v3
|
||||
@ -51,6 +56,8 @@ jobs:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
tags: |
|
||||
latest
|
||||
${{ env.FULL_VERSION }}
|
||||
${{ env.MAJOR_VERSION }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
id: build-and-push
|
||||
|
Loading…
Reference in New Issue
Block a user