This repository was archived by the owner on Apr 24, 2026. It is now read-only.
Steamline tags for CI #4
Workflow file for this run
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: docker | ||
| on: | ||
| push: | ||
| branches: | ||
| - 'master' | ||
| - 'release/*' | ||
| tags: | ||
| - 'v*' | ||
| pull_request: | ||
| branches: | ||
| - 'master' | ||
| jobs: | ||
| build: | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v3 | ||
| - name: Docker meta | ||
| id: meta | ||
| uses: docker/metadata-action@v4 | ||
| with: | ||
| images: | | ||
| docker.wiseflow.io/k8s/${{ github.event.repository.name }} | ||
| tags: | | ||
| type=ref,event=branch | ||
| type=ref,event=pr | ||
| type=ref,event=tag | ||
| type=semver,pattern={{version}} | ||
| type=raw,value={{sha}} | ||
| - name: Set up QEMU | ||
| uses: docker/setup-qemu-action@v2 | ||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v2 | ||
| - name: Login to Harbor | ||
| uses: docker/login-action@v2 | ||
| with: | ||
| registry: docker.wiseflow.io | ||
| username: ${{ secrets.HARBOR_USERNAME }} | ||
| password: ${{ secrets.HARBOR_TOKEN }} | ||
| - name: Build and push | ||
| uses: docker/build-push-action@v3 | ||
| with: | ||
| context: . | ||
| push: ${{ github.event_name != 'pull_request' }} | ||
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: ${{ steps.meta.outputs.labels }} | ||
| cache-from: type=gha,scope=build | ||
| cache-to: type=gha,mode=max,scope=build | ||
| secrets: | | ||
| "github_token=${{ secrets.NPM_READ_TOKEN }}" | ||