bump docs version #1
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: "Release Build" | |
| on: | |
| # Trigger ONLY when a tag is pushed (e.g., v1.2.3) | |
| push: | |
| tags: | |
| - "v*" | |
| # Optional: also allow manual trigger | |
| workflow_dispatch: | |
| permissions: | |
| packages: write | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v2 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract tag name (version) | |
| id: tag | |
| run: | | |
| VERSION=${GITHUB_REF#refs/tags/} | |
| echo "VERSION_TAG=${VERSION}" >> $GITHUB_ENV | |
| - name: Log version tag | |
| run: | | |
| echo "Building release version: ${{ env.VERSION_TAG }}" | |
| - name: Build and Push Docker Image | |
| uses: docker/build-push-action@v3 | |
| with: | |
| context: . | |
| push: true | |
| platforms: linux/amd64 | |
| tags: | | |
| ghcr.io/${{ github.repository_owner }}/beacon:community-${{ env.VERSION_TAG }} | |
| ghcr.io/${{ github.repository_owner }}/beacon:community-latest |