fix(deps): update rust crate thiserror to v2.0.16 #929
Workflow file for this run
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: Release | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| - '!renovate/**' | |
| - '!release-please*' | |
| tags: | |
| - '*' | |
| pull_request: | |
| branches: | |
| - '**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| REGISTRY: ghcr.io | |
| IMAGE_NAME: ${{ github.repository }} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| packages: write | |
| id-token: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| #- name: Install cosign | |
| # if: github.event_name != 'pull_request' | |
| # uses: sigstore/cosign-installer@v3.3.0 | |
| # with: | |
| # cosign-release: 'v2.1.1' | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to GitHub Container Registry | |
| if: github.event_name != 'pull_request' | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract Docker metadata | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
| tags: | | |
| type=ref,event=branch | |
| type=ref,event=pr | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| type=semver,pattern={{major}} | |
| - name: Build and push | |
| id: build-and-push | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| push: ${{ github.event_name != 'pull_request' }} | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| platforms: linux/amd64,linux/arm64 | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| #- name: Sign the published Docker image | |
| # if: ${{ github.event_name != 'pull_request' }} | |
| # env: | |
| # TAGS: ${{ steps.meta.outputs.tags }} | |
| # DIGEST: ${{ steps.build-and-push.outputs.digest }} | |
| # run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} | |
| - name: create crds for helm chart | |
| run: | | |
| # mkdir charts/dbman/crds | |
| # cargo run --bin crdgen > charts/dbman/crds/crds.yaml | |
| cargo run --bin crdgen -- --for-helm > charts/dbman/templates/crds.yaml | |
| - name: Push Helm chart to OCI compatible registry (Github)t | |
| uses: bsord/helm-push@v4.2.0 | |
| if: ${{ github.ref_type == 'tag' }} | |
| with: | |
| useOCIRegistry: true | |
| registry-url: oci://ghcr.io/hef/charts | |
| username: ${{ github.repository }} | |
| access-token: ${{ secrets.GITHUB_TOKEN }} | |
| #force: true | |
| chart-folder: charts/dbman | |