Initial commit: minio-mc-env-loader following minio-env-loader pattern #1
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: Build and Push minio-mc-env-loader | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - '*' | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Authenticate to Google Cloud | |
| uses: google-github-actions/auth@v2 | |
| with: | |
| workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }} | |
| service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }} | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Configure Docker for GCP Artifact Registry | |
| run: gcloud auth configure-docker us-docker.pkg.dev --quiet | |
| - name: Set image tag | |
| id: tag | |
| run: | | |
| MINIO_MC_VERSION="RELEASE.2025-03-12T17-29-24Z" | |
| REGISTRY="us-docker.pkg.dev/hasura-ddn/ddn" | |
| echo "image=${REGISTRY}/minio-mc:${MINIO_MC_VERSION}-env-loader" >> "$GITHUB_OUTPUT" | |
| - name: Build and push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: Dockerfile_EnvLoader | |
| platforms: linux/amd64 | |
| push: true | |
| tags: ${{ steps.tag.outputs.image }} | |
| build-args: | | |
| MINIO_MC_VERSION=${{ env.MINIO_MC_VERSION }} |