Upgrade golangci-lint to 1.61.0 #26
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: Build Image | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'build-image/**' | |
- '.github/workflows/build-image.yml' | |
pull_request: | |
branches: [ master ] | |
paths: | |
- 'build-image/**' | |
- '.github/workflows/build-image.yml' | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
name: Checkout | |
with: | |
fetch-depth: 0 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1 | |
- name: Save image | |
run: make save-multiarch-build-image | |
- name: Upload Docker Images Artifacts | |
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 | |
with: | |
name: build-image | |
path: | | |
./build-image-amd64.tar | |
./build-image-arm64.tar | |
if-no-files-found: error | |
push: | |
needs: build | |
if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.repository == 'cortexproject/cortex' | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
name: Checkout | |
with: | |
fetch-depth: 0 | |
- name: Download Docker Images Artifacts | |
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | |
with: | |
name: build-image | |
- name: Load image | |
run: make load-multiarch-build-image | |
- name: Login to Quay.io | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 | |
with: | |
registry: quay.io | |
username: ${{secrets.QUAY_REGISTRY_USER}} | |
password: ${{secrets.QUAY_REGISTRY_PASSWORD}} | |
- name: Push image | |
run: make push-multiarch-build-image |