chore(deps): update dependency vue to v3.5.22 (#582) #2592
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: ci | |
| on: | |
| push: | |
| pull_request: | |
| types: [opened, reopened] | |
| env: | |
| REGISTRY: ghcr.io | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v6 | |
| with: | |
| version: latest | |
| args: --timeout 3m0s | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Go with cache | |
| uses: actions/setup-go@v5 | |
| with: | |
| cache: true | |
| go-version-file: go.mod | |
| - name: Test | |
| run: make test | |
| build: | |
| if: ( github.event_name == 'push' && ( github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') ) ) | |
| needs: | |
| - lint | |
| - test | |
| runs-on: ubuntu-latest | |
| outputs: | |
| image: ${{ steps.image-ref.outputs.image }} | |
| image_latest: ${{ steps.image-ref.outputs.image_latest }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up docker buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to Container registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Create image ref and version | |
| id: image-ref | |
| run: | | |
| REF=$(git rev-parse --short $GITHUB_SHA) | |
| # Get version from git tags or use commit-based version | |
| VERSION=$(git describe --tags --always --dirty 2>/dev/null || echo "dev-${REF}") | |
| IMAGE=${{ env.REGISTRY }}/${{ github.repository }}:${REF} | |
| IMAGE_LATEST=${{ env.REGISTRY }}/${{ github.repository }}:latest | |
| IMAGE_JRE=${{ env.REGISTRY }}/${{ github.repository }}/jre:${REF} | |
| IMAGE_JRE_LATEST=${{ env.REGISTRY }}/${{ github.repository }}/jre:latest | |
| echo "image=${IMAGE}" >> $GITHUB_OUTPUT | |
| echo "image_latest=${IMAGE_LATEST}" >> $GITHUB_OUTPUT | |
| echo "image_jre=${IMAGE_JRE}" >> $GITHUB_OUTPUT | |
| echo "image_jre_latest=${IMAGE_JRE_LATEST}" >> $GITHUB_OUTPUT | |
| echo "version=${VERSION}" >> $GITHUB_OUTPUT | |
| echo "Building images:" >> $GITHUB_STEP_SUMMARY | |
| echo "- ${IMAGE}" >> $GITHUB_STEP_SUMMARY | |
| echo "- ${IMAGE_JRE}" >> $GITHUB_STEP_SUMMARY | |
| echo "Version: ${VERSION}" >> $GITHUB_STEP_SUMMARY | |
| - name: Build and push docker image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| push: true | |
| platforms: linux/amd64,linux/arm64,windows/amd64,windows/arm64,darwin/amd64,darwin/arm64,linux/arm/v7,linux/arm/v8,linux/s390x | |
| cache-from: type=registry,ref=${{ steps.image-ref.outputs.image_latest }} | |
| cache-to: type=inline | |
| build-args: | | |
| VERSION=${{ steps.image-ref.outputs.version }} | |
| target: gate | |
| tags: | | |
| ${{ steps.image-ref.outputs.image }} | |
| ${{ steps.image-ref.outputs.image_latest }} | |
| - name: Build and push docker image (jre variant) | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| push: true | |
| platforms: linux/amd64,linux/arm64,windows/amd64,windows/arm64,darwin/amd64,darwin/arm64,linux/arm/v7,linux/arm/v8,linux/s390x | |
| cache-from: type=registry,ref=${{ steps.image-ref.outputs.image_jre_latest }} | |
| cache-to: type=inline | |
| build-args: | | |
| VERSION=${{ steps.image-ref.outputs.version }} | |
| target: jre | |
| tags: | | |
| ${{ steps.image-ref.outputs.image_jre }} | |
| ${{ steps.image-ref.outputs.image_jre_latest }} | |
| releaser: | |
| if: startsWith(github.ref, 'refs/tags/') | |
| needs: | |
| - build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| cache: true | |
| go-version-file: go.mod | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| version: latest | |
| args: release --clean | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |