extension: frontend: Move to new configuration when new configuration… #78
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: Deploy BlueOS Extension Image | |
| on: | |
| push: | |
| pull_request: | |
| # Run manually | |
| workflow_dispatch: | |
| # NOTE: caches may be removed if not run weekly | |
| # -> may be worth scheduling for every 6 days | |
| env: | |
| IMAGE_NAME: doris | |
| IMAGE_PREFIX: blueos- | |
| jobs: | |
| deploy-dockerhub: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy to Docker Hub | |
| uses: patrickelectric/Deploy-BlueOS-Extension@improve-docker-path | |
| with: | |
| docker-username: ${{ secrets.DOCKER_USERNAME }} | |
| docker-password: ${{ secrets.DOCKER_PASSWORD }} | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| image-name: ${{ env.IMAGE_NAME }} | |
| context: ./extension | |
| deploy-ghcr: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract metadata for GHCR | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_PREFIX }}${{ env.IMAGE_NAME }} | |
| tags: | | |
| type=ref,event=branch | |
| type=ref,event=pr | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| type=raw,value=latest,enable=${{ github.ref_type == 'tag' }} | |
| - name: Build and push to GHCR | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: ./extension | |
| platforms: linux/arm/v7,linux/arm64/v8,linux/amd64 | |
| push: ${{ github.event_name != 'pull_request' }} | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max |