Remove file location configuration for legacy create component template #69
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: | |
| branches: | |
| - main | |
| env: | |
| REGISTRY: ghcr.io | |
| IMAGE_NAME: openchoreo/openchoreo-ui | |
| # Avoid running multiple builds for the same commit | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Login to Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Determine image tag | |
| id: tag | |
| run: | | |
| if [[ $GITHUB_REF == refs/tags/* ]]; then | |
| # Extract tag (keep 'v' prefix for Docker images) | |
| TAG=${GITHUB_REF#refs/tags/} | |
| echo "IMAGE_TAG=${TAG}" >> $GITHUB_OUTPUT | |
| elif [[ $GITHUB_REF == refs/heads/main ]]; then | |
| echo "IMAGE_TAG=latest-dev" >> $GITHUB_OUTPUT | |
| else | |
| echo "IMAGE_TAG=${GITHUB_SHA::8}" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Build and push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| push: true | |
| file: ./packages/backend/Dockerfile | |
| platforms: linux/amd64,linux/arm64 | |
| tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.tag.outputs.IMAGE_TAG }} | |
| cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.tag.outputs.IMAGE_TAG }} | |
| cache-to: type=inline |