promote #4020
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
checks: write | |
release: | |
needs: [build] | |
runs-on: ubuntu-latest | |
timeout-minutes: 120 | |
permissions: | |
contents: write | |
packages: write | |
issues: write | |
id-token: write | |
steps: | |
- name: docker-config | |
uses: containerbase/internal-tools@fa96b70003f221771f8c015cd3f598818ebf4d78 # v3.5.4 | |
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@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0 | |
- name: init | |
run: | | |
echo "OWNER=${OWNER,,}" >> ${GITHUB_ENV} | |
- name: 📥 Setup Node.js | |
uses: ./.github/actions/setup-node | |
- 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: prepare apt proxy | |
run: sudo pnpm prepare:proxy | |
- 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 }} |