Fix duplicate nightly tag, add date+sha pinned tags, lint dev builds, preserve nightly in cleanup
This commit is contained in:
parent
26ba1bdc0f
commit
c91e651bcd
2 changed files with 11 additions and 3 deletions
4
.github/workflows/cleanup-dev-images.yml
vendored
4
.github/workflows/cleanup-dev-images.yml
vendored
|
|
@ -20,5 +20,5 @@ jobs:
|
||||||
package-type: container
|
package-type: container
|
||||||
min-versions-to-keep: 10
|
min-versions-to-keep: 10
|
||||||
delete-only-pre-release-versions: false
|
delete-only-pre-release-versions: false
|
||||||
# Only prune tags matching the dev nightly pattern (keep :dev rolling tag)
|
# Only prune tags matching the dev nightly pattern (keep rolling + version tags)
|
||||||
ignore-versions: '^(dev|latest|\\d+\\.\\d+)$'
|
ignore-versions: '^(dev|nightly|latest|\\d+\\.\\d+)$'
|
||||||
|
|
|
||||||
10
.github/workflows/dev-nightly.yml
vendored
10
.github/workflows/dev-nightly.yml
vendored
|
|
@ -55,6 +55,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
python -m pip install -r requirements-dev.txt
|
python -m pip install -r requirements-dev.txt
|
||||||
|
python -m ruff check --output-format=github .
|
||||||
python -m compileall api core database services scripts web_server.py wsgi.py beatport_unified_scraper.py
|
python -m compileall api core database services scripts web_server.py wsgi.py beatport_unified_scraper.py
|
||||||
python -m pytest
|
python -m pytest
|
||||||
|
|
||||||
|
|
@ -74,6 +75,13 @@ jobs:
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Generate build tag
|
||||||
|
if: steps.recent.outputs.skip != 'true'
|
||||||
|
id: tag
|
||||||
|
run: |
|
||||||
|
echo "date=$(date -u +%Y%m%d)" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "short_sha=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Build and push to GHCR
|
- name: Build and push to GHCR
|
||||||
if: steps.recent.outputs.skip != 'true'
|
if: steps.recent.outputs.skip != 'true'
|
||||||
uses: docker/build-push-action@v7
|
uses: docker/build-push-action@v7
|
||||||
|
|
@ -88,5 +96,5 @@ jobs:
|
||||||
COMMIT_SHA=${{ github.sha }}
|
COMMIT_SHA=${{ github.sha }}
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ github.repository_owner }}/soulsync:dev
|
ghcr.io/${{ github.repository_owner }}/soulsync:dev
|
||||||
${{ github.event_name == 'schedule' && format('ghcr.io/{0}/soulsync:nightly', github.repository_owner) || '' }}
|
ghcr.io/${{ github.repository_owner }}/soulsync:dev-${{ steps.tag.outputs.date }}-${{ steps.tag.outputs.short_sha }}
|
||||||
${{ github.event_name == 'schedule' && format('ghcr.io/{0}/soulsync:nightly', github.repository_owner) || '' }}
|
${{ github.event_name == 'schedule' && format('ghcr.io/{0}/soulsync:nightly', github.repository_owner) || '' }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue