chore(deps): bump docker/setup-buildx-action from 3.7.1 to 3.8.0 in the actions group #71
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: CI | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'Dockerfile*' | |
- 'docker-bake.hcl' | |
- '.github/workflows/CI.yml' | |
pull_request: | |
branches: [ master ] | |
paths: | |
- 'Dockerfile*' | |
- 'docker-bake.hcl' | |
- '.github/workflows/CI.yml' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
matrix: | |
target: [ "all", "19", "18", "17", "16", "16-alpine", "15", "14", "13", "12", "11", "10", "9", "8", "7"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: Check formatting | |
run: make install-deps && make lint | |
- name: Login container registries | |
run: | | |
docker login ghcr.io -u shenxianpeng -p '${{ secrets.CR_PAT }}' | |
docker login -u '${{ secrets.DOCKER_USERNAME }}' -p '${{ secrets.DOCKER_PASSWORD }}' | |
- name: Check buildx bake | |
run: docker buildx bake --file docker-bake.hcl --print | |
- name: Build image for tag ${{ matrix.target }} | |
if: github.ref == 'refs/heads/master' | |
run: docker buildx bake --file docker-bake.hcl ${{ matrix.target }} --load | |
- name: Publish image for tag ${{ matrix.target }} | |
if: github.ref == 'refs/heads/master' && github.event_name == 'workflow_dispatch' | |
run: docker buildx bake --file docker-bake.hcl ${{ matrix.target }} --push | |
- name: Remove builder instances | |
if: github.ref == 'refs/heads/master' && github.event_name == 'workflow_dispatch' | |
run: docker buildx rm --all-inactive --force |