fix: use rustls-tls as native-tls-vendored doesn't work in a containe… #278
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: docker-ci | |
| on: | |
| push: | |
| branches: [master] | |
| permissions: | |
| packages: write | |
| contents: read | |
| jobs: | |
| push: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'reamlabs/ream' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: rui314/setup-mold@v1 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-on-failure: true | |
| - name: Install cross main | |
| id: cross_main | |
| run: | | |
| cargo install cross --git https://github.com/cross-rs/cross | |
| - name: Log in to Docker | |
| run: | | |
| echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io --username ${{ github.actor }} --password-stdin | |
| - name: Set up Docker builder | |
| run: | | |
| docker run --privileged --rm tonistiigi/binfmt --install arm64,amd64 | |
| docker buildx create --use --name cross-builder | |
| - name: Build and push ream image | |
| run: | | |
| BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') | |
| make docker-build-push \ | |
| GIT_COMMIT="${{ github.sha }}" \ | |
| GIT_BRANCH="${{ github.ref_name }}" \ | |
| BUILD_DATE="$BUILD_DATE" |