1
0
mirror of https://github.com/phusion/baseimage-docker.git synced 2026-03-26 12:29:07 +00:00

Create GH releases on tag push, update deprecated workflow components

- main.yml: Trigger on tag pushes (noble-*, jammy-*) instead of manual
  release published events
- main.yml: Add step to create GitHub release after image build+push
- main.yml: Add contents:write + packages:write permissions
- main.yml: Update docker/build-push-action from v5 to v6
- scheduled-build.yml: Update docker/build-push-action from v5 to v6
- stale.yml: Remove deprecated repo-token parameter

Co-authored-by: samip5 <1703002+samip5@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-27 12:51:54 +00:00
parent e62ee93f8a
commit 00987409ee
3 changed files with 21 additions and 6 deletions

View File

@@ -2,12 +2,18 @@ name: Release
on:
workflow_dispatch:
release:
types: [published]
push:
tags:
- 'noble-*'
- 'jammy-*'
permissions:
contents: write
packages: write
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci-skip]')"
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -76,7 +82,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
builder: ${{ steps.buildx.outputs.name }}
context: image
@@ -84,3 +90,13 @@ jobs:
push: ${{ steps.prep.outputs.push }}
tags: ${{ steps.prep.outputs.tags }}
build-args: BASE_IMAGE=${{ steps.prep.outputs.base_image }}
- name: Create GitHub Release
if: startsWith(github.ref, 'refs/tags/')
run: |
gh release create "${{ github.ref_name }}" \
--repo "${{ github.repository }}" \
--title "${{ github.ref_name }}" \
--generate-notes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -81,7 +81,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: image
platforms: ${{ steps.prep.outputs.platforms }}

View File

@@ -9,7 +9,6 @@ jobs:
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.'
stale-pr-message: 'This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution.'
close-issue-message: 'Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.'