[ci] Patch CI for rebuilds
This commit is contained in:
parent
da2cb76aab
commit
77709fd90d
1 changed files with 6 additions and 20 deletions
|
@ -1,7 +1,7 @@
|
|||
on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
push:
|
||||
branches:
|
||||
- release-fixup
|
||||
jobs:
|
||||
build-artifacts:
|
||||
runs-on: docker
|
||||
|
@ -22,12 +22,7 @@ jobs:
|
|||
run: make release-artifacts "ARCHIVE_BASENAME=$REPO" "ARCHIVE_VERSION=$RELEASE_VERSION" VERBOSE=true DEP_VULN_WERROR=true
|
||||
env:
|
||||
REPO: ${{ github.event.repository.name }}
|
||||
RELEASE_VERSION: ${{ github.ref_name }}
|
||||
- name: Upload artifacts
|
||||
uses: actions/release-action@main
|
||||
with:
|
||||
files: artifacts/**
|
||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
||||
RELEASE_VERSION: v2025.1-beta5.patch1
|
||||
- name: Set environment variables
|
||||
shell: bash
|
||||
run: |
|
||||
|
@ -35,16 +30,7 @@ jobs:
|
|||
REPO="iceshrimp.dev/${GITHUB_REPOSITORY@L}"
|
||||
|
||||
# We always want to tag :{version} and :pre, but only tag :latest for stable releases, and (temporarily) v2024.1-beta releases
|
||||
TAGS="-t $REPO:$GITHUB_REF_NAME -t $REPO:pre"
|
||||
|
||||
# The first section below can be safely removed once v2024.1 hits stable
|
||||
if [[ "$GITHUB_REF_NAME" == "v2024.1-beta"* ]]; then
|
||||
TAGS="$TAGS -t $REPO:latest"
|
||||
elif [[ "$GITHUB_REF_NAME" == *"-beta"* ]] || [[ "$GITHUB_REF_NAME" == *"-pre"* ]]; then
|
||||
:
|
||||
else
|
||||
TAGS="$TAGS -t $REPO:latest"
|
||||
fi
|
||||
TAGS="-t $REPO:v2025.1-beta5.patch1 -t $REPO:latest -t $REPO:pre"
|
||||
|
||||
# Finally, we pass the computed tags back to the actions environment
|
||||
echo "TAGS=$TAGS" >> "${GITHUB_ENV}"
|
||||
|
|
Loading…
Add table
Reference in a new issue