Sync from UI commit 914c4b4863cb5b5118f593fbc5e0136e740357ce #102
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 |