Sync from UI commit 3cb692eedec7647c2f5c50e7c029aff9161d88d4 #239
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: On Commit | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_call: | |
| inputs: | |
| ref: | |
| required: true | |
| type: string | |
| env: | |
| GITHUB_REF: ${{ inputs.ref || github.event.ref }} | |
| permissions: | |
| id-token: write | |
| contents: write | |
| jobs: | |
| docker-build-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout ui-server | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ env.GITHUB_REF }} | |
| - name: Setup Docker | |
| uses: ./.github/actions/setup-docker | |
| with: | |
| docker_username: ${{ secrets.DOCKER_USERNAME }} | |
| docker_pat: ${{ secrets.DOCKER_PAT }} | |
| - name: Docker Build and Push | |
| uses: ./.github/actions/docker-build-push | |
| with: | |
| images: ${{ vars.DOCKER_IMAGE_TEST_UI }} | |
| tags: | | |
| type=sha,format=short,event=branch | |
| latest |