fix(sync): stabilize imports, project lock, and TUI ordering #16
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: Publish Engram Cloud Image | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| publish-ghcr: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Detect default-branch release tag | |
| id: refcheck | |
| shell: bash | |
| run: | | |
| if [[ "${GITHUB_REF}" != refs/tags/v* ]]; then | |
| echo "is_default_branch_tag=false" >> "$GITHUB_OUTPUT" | |
| exit 0 | |
| fi | |
| if git branch -r --contains "${GITHUB_SHA}" | grep -q "origin/main"; then | |
| echo "is_default_branch_tag=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "is_default_branch_tag=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to GHCR | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract Docker metadata | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ghcr.io/gentleman-programming/engram | |
| tags: | | |
| type=raw,value=latest,enable=${{ steps.refcheck.outputs.is_default_branch_tag == 'true' }} | |
| type=ref,event=tag | |
| type=semver,pattern={{version}},value=${{ github.ref_name }},enable=${{ startsWith(github.ref, 'refs/tags/v') }} | |
| type=semver,pattern={{major}}.{{minor}},value=${{ github.ref_name }},enable=${{ startsWith(github.ref, 'refs/tags/v') }} | |
| type=semver,pattern={{major}},value=${{ github.ref_name }},enable=${{ startsWith(github.ref, 'refs/tags/v') }} | |
| type=sha,prefix=sha-,enable=${{ github.event_name == 'workflow_dispatch' }} | |
| labels: | | |
| org.opencontainers.image.title=Engram Cloud | |
| org.opencontainers.image.description=Project-scoped sync and dashboard runtime for Engram Cloud. | |
| org.opencontainers.image.source=https://github.com/gentleman-programming/engram | |
| org.opencontainers.image.licenses=MIT | |
| - name: Build and push multi-arch image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: docker/cloud/Dockerfile | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} |