actions: skip 'BE' version

This commit is contained in:
AirryCo
2025-03-26 13:16:41 +08:00
parent 22fff52f04
commit cb9455868b
2 changed files with 2 additions and 7 deletions

View File

@@ -50,13 +50,13 @@ jobs:
source trigger.release source trigger.release
server_last_built_tag=$server server_last_built_tag=$server
server_latest_tag=${{ steps.get-latest-tag.outputs.SPT_SERVER_LATEST_TAG }} server_latest_tag=${{ steps.get-latest-tag.outputs.SPT_SERVER_LATEST_TAG }}
if [ "$server_last_built_tag" != "$server_latest_tag" ]; then if [ "$server_last_built_tag" != "$server_latest_tag" ] && ${{ !contains(needs.prepare.outputs.TARGET_TAG, 'BE') }}; then
echo "✅ There is different between last-built-tag and lastest-tag, continue to build." echo "✅ There is different between last-built-tag and lastest-tag, continue to build."
echo "BUILT_TAG=$server_last_built_tag" >> $GITHUB_OUTPUT echo "BUILT_TAG=$server_last_built_tag" >> $GITHUB_OUTPUT
echo "TARGET_TAG=$server_latest_tag" >> $GITHUB_OUTPUT echo "TARGET_TAG=$server_latest_tag" >> $GITHUB_OUTPUT
echo "PROCEED=true" >> $GITHUB_OUTPUT echo "PROCEED=true" >> $GITHUB_OUTPUT
else else
echo "✋ last-built-tag and latest-tag are the same, stop building." echo "✋ tags are the same, stop building."
echo "PROCEED=false" >> $GITHUB_OUTPUT echo "PROCEED=false" >> $GITHUB_OUTPUT
fi fi
shell: bash shell: bash
@@ -238,7 +238,6 @@ jobs:
# docker # docker
- name: Extract metadata for Docker with release version - name: Extract metadata for Docker with release version
if: ${{ !contains(needs.prepare.outputs.TARGET_TAG, 'BE') }}
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
@@ -251,7 +250,6 @@ jobs:
type=semver,pattern={{major}}.{{minor}},value=${{ needs.prepare.outputs.TARGET_TAG }} type=semver,pattern={{major}}.{{minor}},value=${{ needs.prepare.outputs.TARGET_TAG }}
type=raw,value=latest type=raw,value=latest
- name: Extract metadata for Docker with release version and fika built-in - name: Extract metadata for Docker with release version and fika built-in
if: ${{ !contains(needs.prepare.outputs.TARGET_TAG, 'BE') }}
id: meta-fika id: meta-fika
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
@@ -291,7 +289,6 @@ jobs:
password: ${{ secrets.ALIYUN_REGISTRY_TOKEN }} password: ${{ secrets.ALIYUN_REGISTRY_TOKEN }}
- name: Build and Push For Release With Fika - name: Build and Push For Release With Fika
if: ${{ !contains(needs.prepare.outputs.TARGET_TAG, 'BE') }}
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
context: ./docker context: ./docker
@@ -305,7 +302,6 @@ jobs:
org.opencontainers.image.revision=${{ needs.build-server-linux.outputs.LINUX_COMMIT_ID_WHOLE }} org.opencontainers.image.revision=${{ needs.build-server-linux.outputs.LINUX_COMMIT_ID_WHOLE }}
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
- name: Build and Push For Release - name: Build and Push For Release
if: ${{ !contains(needs.prepare.outputs.TARGET_TAG, 'BE') }}
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
context: ./docker context: ./docker

View File

@@ -8,7 +8,6 @@ You can find the lanucher from [here](https://github.com/AirryCo/spt-launcher-ci
[![SPT-Server Build Nightly](https://github.com/AirryCo/spt-server-ci/actions/workflows/build-nightly-cron.yaml/badge.svg)](https://github.com/AirryCo/spt-server-ci/actions/workflows/build-nightly-cron.yaml) [![SPT-Server Build Nightly](https://github.com/AirryCo/spt-server-ci/actions/workflows/build-nightly-cron.yaml/badge.svg)](https://github.com/AirryCo/spt-server-ci/actions/workflows/build-nightly-cron.yaml)
[![SPT-Server Manual Build](https://github.com/AirryCo/spt-server-ci/actions/workflows/build-nightly-manual.yaml/badge.svg)](https://github.com/AirryCo/spt-server-ci/actions/workflows/build-nightly-manual.yaml)
## How to use ## How to use