Repository navigation
feat: simplify publish/unpublish button logic in contents component #308
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: Build and Push Docker Image | |
| on: | |
| # Allows you to run workflow manually from Actions tab | |
| workflow_dispatch: | |
| inputs: | |
| tags: | |
| description: 'Docker Tag' | |
| required: true | |
| default: 'latest' | |
| push: | |
| branches: [main] | |
| tags: | |
| # Releases are tagged as a plain `4.0.0` from 4.0.0 on; the pattern stays loose so a tag that slips | |
| # back into the old `v4.1.0` form still produces an image rather than silently producing none. | |
| - '*.*.*' | |
| # Only build when files in these directories have been changed | |
| paths: | |
| - src/** | |
| - functions/** | |
| - angular.json | |
| - Dockerfile | |
| - firebase.json | |
| - firestore.indexes.json | |
| - firestore.rules | |
| - package.json | |
| - storage.rules | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Docker meta | |
| id: meta | |
| uses: docker/metadata-action@v6 | |
| with: | |
| images: ghcr.io/${{ github.repository_owner }}/localess | |
| tags: | | |
| type=edge,branch=main | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| type=semver,pattern={{major}} | |
| type=semver,pattern=latest | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push | |
| uses: docker/build-push-action@v7 | |
| with: | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| context: . | |
| platforms: linux/amd64 | |
| push: true |