Repository navigation
chore(deps): update dependency buildx to v0.36.1 (#1461) #3347
This file contains hidden or 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: build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| DRY_RUN: ${{ github.ref_name != 'main' }} | |
| OWNER: ${{ github.repository_owner }} | |
| PLATFORMS: linux/amd64,linux/arm64 | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: ⚙️ Setup | |
| uses: containerbase/internal-tools/setup@895bb5083090169eb5788844e5f73b5b8a2e8956 # v4.6.86 | |
| with: | |
| save-cache: true | |
| - run: pnpm prettier | |
| build: | |
| needs: | |
| - lint | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| show-progress: false | |
| - uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2 | |
| - name: Docker registry login | |
| if: env.DRY_RUN == 'false' | |
| run: | | |
| echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ env.OWNER }} --password-stdin | |
| - name: Publish to ghcr.io | |
| uses: containerbase/internal-tools@895bb5083090169eb5788844e5f73b5b8a2e8956 # v4.6.86 | |
| with: | |
| command: docker-builder | |
| image-prefix: ghcr.io/${{ env.OWNER }} | |
| platforms: ${{ env.PLATFORMS }} | |
| last-only: true | |
| major-minor: false | |
| dry-run: ${{ env.DRY_RUN }} | |
| release: | |
| needs: | |
| - build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| show-progress: false | |
| - name: Init | |
| run: ./bin/init.sh | |
| - uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0 | |
| if: env.DRY_RUN == 'false' | |
| with: | |
| allowUpdates: true | |
| body: See https://github.com/containerbase/base/releases/tag/${{ env.VERSION }} for more changes | |
| commit: ${{ github.sha }} | |
| name: ${{ env.VERSION }} | |
| tag: v${{ env.VERSION }} | |
| token: ${{ secrets.GITHUB_TOKEN }} |