Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Laura Hausmann
77709fd90d
[ci] Patch CI for rebuilds 2025-02-23 01:47:11 +01:00

View file

@ -1,7 +1,7 @@
on: on:
release: push:
types: branches:
- published - release-fixup
jobs: jobs:
build-artifacts: build-artifacts:
runs-on: docker runs-on: docker
@ -22,29 +22,15 @@ jobs:
run: make release-artifacts "ARCHIVE_BASENAME=$REPO" "ARCHIVE_VERSION=$RELEASE_VERSION" VERBOSE=true DEP_VULN_WERROR=true run: make release-artifacts "ARCHIVE_BASENAME=$REPO" "ARCHIVE_VERSION=$RELEASE_VERSION" VERBOSE=true DEP_VULN_WERROR=true
env: env:
REPO: ${{ github.event.repository.name }} REPO: ${{ github.event.repository.name }}
RELEASE_VERSION: ${{ github.ref_name }} RELEASE_VERSION: v2025.1-beta5.patch1
- name: Upload artifacts
uses: actions/release-action@main
with:
files: artifacts/**
api_key: '${{secrets.RELEASE_TOKEN}}'
- name: Set environment variables - name: Set environment variables
shell: bash shell: bash
run: | run: |
# First, we set the docker repository we want to push to # First, we set the docker repository we want to push to
REPO="iceshrimp.dev/${GITHUB_REPOSITORY@L}" 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 # 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" TAGS="-t $REPO:v2025.1-beta5.patch1 -t $REPO:latest -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
# Finally, we pass the computed tags back to the actions environment # Finally, we pass the computed tags back to the actions environment
echo "TAGS=$TAGS" >> "${GITHUB_ENV}" echo "TAGS=$TAGS" >> "${GITHUB_ENV}"