automated update: 2026-06-10 21:30:50

This commit is contained in:
root
2026-06-10 21:30:50 -04:00
parent 0dac947519
commit 74351512a7
2 changed files with 12 additions and 16 deletions
+3 -6
View File
@@ -7,21 +7,19 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# --- ADD THIS BLOCK ---
permissions: permissions:
contents: read contents: read
packages: write packages: write
# ----------------------
steps: steps:
- name: Free up disk space - name: Free up disk space
run: | run: |
sudo rm -rf /usr/share/dotnet sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost" sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY" sudo rm -rf "$AGENT_TOOLSDIRECTORY"
echo "Disk space freed." echo "Disk space freed."
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -30,13 +28,12 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GHCR_PAT }}
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: . context: .
push: true push: true
# Make sure this matches your exact repo name (lowercase)
tags: ghcr.io/sudolulo/if-curator-headless:latest tags: ghcr.io/sudolulo/if-curator-headless:latest
+9 -10
View File
@@ -14,17 +14,18 @@ jobs:
name: Create GitHub Release & Build Image name: Create GitHub Release & Build Image
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write # Needed for creating releases contents: write
packages: write # Needed for pushing to GHCR packages: write
steps: steps:
- name: Free up disk space - name: Free up disk space
run: | run: |
sudo rm -rf /usr/share/dotnet sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost" sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY" sudo rm -rf "$AGENT_TOOLSDIRECTORY"
echo "Disk space freed." echo "Disk space freed."
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
@@ -59,9 +60,7 @@ jobs:
id: changelog id: changelog
run: | run: |
VERSION="${{ steps.tag.outputs.VERSION }}" VERSION="${{ steps.tag.outputs.VERSION }}"
# Extract the section for this version from CHANGELOG.md
NOTES=$(awk "/^## \[$VERSION\]/{found=1; next} found && /^## \[/{exit} found{print}" CHANGELOG.md) NOTES=$(awk "/^## \[$VERSION\]/{found=1; next} found && /^## \[/{exit} found{print}" CHANGELOG.md)
# Use a delimiter to safely pass multiline output
{ {
echo "NOTES<<CHANGELOG_EOF" echo "NOTES<<CHANGELOG_EOF"
echo "$NOTES" echo "$NOTES"
@@ -92,7 +91,7 @@ jobs:
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GHCR_PAT }}
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5