Set required BUILD_ARGs #5
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: CI | |
| on: | |
| push: | |
| branches: ["maestro"] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| env: | |
| DOCKER_BUILDKIT: "1" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Install Google Cloud SDK | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install apt-transport-https ca-certificates gnupg curl | |
| curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg | |
| echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list | |
| sudo apt-get update && sudo apt-get install google-cloud-cli | |
| - name: Authenticate to Google Cloud | |
| uses: google-github-actions/[email protected] | |
| with: | |
| workload_identity_provider: projects/983485536167/locations/global/workloadIdentityPools/github-actions-funny-flea/providers/github-actions-funny-flea | |
| service_account: [email protected] | |
| - name: Set up Google Cloud SDK | |
| run: | | |
| gcloud auth login --cred-file=${CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE} | |
| gcloud auth configure-docker us-central1-docker.pkg.dev | |
| - id: vars | |
| run: .github/scripts/vars | |
| - uses: docker/build-push-action@v6 | |
| with: | |
| file: docker/Dockerfile | |
| platforms: linux/amd64 | |
| build-args: | | |
| RELEASE_VERSION=6.10.0 | |
| push: ${{ github.ref_name == 'maestro' }} | |
| tags: ${{ steps.vars.outputs.image }}:${{ steps.vars.outputs.version }} |