Merge pull request #184 from cipherstash/chore/upgrade-ubuntu-base-image #145
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: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - .github/workflows/release.yml | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: 🏗️ Build binaries + Docker images | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| build: | |
| #- { os: buildjet-16vcpu-ubuntu-2204, arch: linux/amd64, cache-provider: buildjet } | |
| - { os: linux-arm64-public, arch: linux/arm64, cache-provider: github } | |
| runs-on: ${{matrix.build.os}} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-provider: ${{matrix.build.cache-provider}} | |
| cache-all-crates: true | |
| - uses: jdx/mise-action@v2 | |
| with: | |
| version: 2025.1.6 # [default: latest] mise version to install | |
| install: true # [default: true] run `mise install` | |
| cache: true # [default: true] cache mise using GitHub's cache | |
| - run: | | |
| mise run build --platform ${{matrix.build.arch}} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: cipherstash-proxy-${{matrix.build.arch == 'linux/amd64' && 'linux_amd64' || 'linux_arm64'}} | |
| path: cipherstash-proxy | |
| - if: github.event_name != 'pull_request' | |
| env: | |
| DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }} | |
| DOCKER_HUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.DOCKER_HUB_PERSONAL_ACCESS_TOKEN }} | |
| run: | | |
| mise run release --platform ${{matrix.build.arch}} |