build(deps-dev): bump vite from 6.3.5 to 6.4.1 in /src/store-admin #56
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: package-store-admin | |
| on: | |
| pull_request: | |
| branches: | |
| - "main" | |
| paths: | |
| - "src/store-admin/**" | |
| push: | |
| branches: | |
| - "main" | |
| paths: | |
| - "src/store-admin/**" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| publish-container-image: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set environment variables | |
| id: set-variables | |
| run: | | |
| echo "REPOSITORY=ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT" | |
| echo "IMAGE=store-admin" >> "$GITHUB_OUTPUT" | |
| echo "VERSION=$(echo ${GITHUB_SHA} | cut -c1-7)" >> "$GITHUB_OUTPUT" | |
| echo "CREATED=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "$GITHUB_OUTPUT" | |
| - name: Env variable output | |
| id: test-variables | |
| run: | | |
| echo ${{ steps.set-variables.outputs.REPOSITORY }} | |
| echo ${{ steps.set-variables.outputs.IMAGE }} | |
| echo ${{ steps.set-variables.outputs.VERSION }} | |
| echo ${{ steps.set-variables.outputs.CREATED }} | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v1 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ github.token }} | |
| - name: Build and push | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: src/store-admin | |
| file: src/store-admin/Dockerfile | |
| platforms: linux/amd64,linux/arm64 | |
| push: ${{ github.event_name == 'push' }} | |
| tags: | | |
| ${{ steps.set-variables.outputs.REPOSITORY }}/${{ steps.set-variables.outputs.IMAGE }}:latest | |
| ${{ steps.set-variables.outputs.REPOSITORY }}/${{ steps.set-variables.outputs.IMAGE }}:${{ steps.set-variables.outputs.VERSION }} | |
| labels: | | |
| org.opencontainers.image.source=${{ github.repositoryUrl }} | |
| org.opencontainers.image.created=${{ steps.set-variables.outputs.CREATED }} | |
| org.opencontainers.image.revision=${{ steps.set-variables.outputs.VERSION }} |