Sync from UI commit 89deb1af4f4a963d1d78ff8cf6e4ecde8210b690 #332
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 |