feat: add column provision type for user provision details table #3
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
| # Workflow: Build and Push Staging Docker Container | |
| # Description: Builds and pushes amd64-only staging image for Auth on every main merge. | |
| # Why: Provides a :staging floating tag and immutable :sha-* tags for pre-release validation, | |
| # completely separate from the :latest production tags pushed by build-and-push.yml. | |
| name: Staging Package Manager | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| REGISTRY: ghcr.io | |
| IMAGE_NAME: ${{ github.repository }} | |
| jobs: | |
| build-auth: | |
| # Skip commits pushed by the release bot (chore(release): vX.Y.Z commits from release.yml) | |
| if: github.actor != 'github-actions[bot]' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Create .env file | |
| run: cp .env.sample .env | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| with: | |
| driver-opts: | | |
| image=moby/buildkit:latest | |
| network=host | |
| - name: Log in to the Container registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract metadata for Auth | |
| id: meta-auth | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
| tags: | | |
| type=raw,value=staging | |
| type=sha,prefix=sha-,format=short | |
| - name: Build and push Auth image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| platforms: linux/amd64 | |
| push: true | |
| tags: ${{ steps.meta-auth.outputs.tags }} | |
| labels: ${{ steps.meta-auth.outputs.labels }} | |
| cache-from: type=gha,scope=staging-auth | |
| cache-to: type=gha,mode=max,scope=staging-auth | |
| provenance: false |