Skip to content

chore(renovate): add labels and disable approval (#1528) #4710

chore(renovate): add labels and disable approval (#1528)

chore(renovate): add labels and disable approval (#1528) #4710

Workflow file for this run

name: promote
on:
push:
branches-ignore:
- gh-readonly-queue/**
merge_group:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
DRY_RUN: ${{ github.ref_name != 'main' && !startsWith(github.ref_name, 'maint/')}}
OWNER: ${{ github.repository_owner }}
FILE: base-image
BUILDKIT_PROGRESS: plain
BUILDX_NO_DEFAULT_LOAD: 1
BASE_IMAGE_VERSION: ${{ github.ref_name }}-${{ github.sha }}
APT_HTTP_PROXY: http://172.17.0.1:8000
jobs:
build:
uses: ./.github/workflows/build.yml
permissions:
contents: read
packages: write
with:
cache: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
release:
needs:
- build
runs-on: ubuntu-22.04
timeout-minutes: 120
permissions:
contents: write
packages: write
issues: write
id-token: write
steps:
- name: docker-config
uses: containerbase/internal-tools@e49daccce71d5506c63fa4b00540248bb18add27 # v3.8.2
with:
command: docker-config
# full checkout for semantic-release
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
show-progress: false
fetch-depth: 0
filter: blob:none
- uses: sigstore/cosign-installer@c56c2d3e59e4281cc41dea2217323ba5694b171e # v3.8.0
- uses: containerbase/internal-tools/setup@e49daccce71d5506c63fa4b00540248bb18add27 # v3.8.2
with:
checkout: false
apt-proxy: true
- name: init
run: |
echo "OWNER=${OWNER,,}" >> ${GITHUB_ENV}
- name: Docker registry login
if: github.ref_name == 'main' || startsWith(github.ref_name, 'maint/')
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
- name: semantic-release
if: github.event_name == 'push'
run: pnpm semantic-release --dry-run ${{env.DRY_RUN}} --ci ${{env.DRY_RUN != 'true'}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}