Sync from UI commit 25cf417a5174922a3d0aab81e4615d903efd2b73 #255
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 |