1
0
mirror of https://github.com/phusion/baseimage-docker.git synced 2026-03-26 20:38:58 +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 }}