docs: record Cowork architecture review decisions #8
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 ONEComputer workspace image | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - codex/onevibe-computer | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 360 | |
| steps: | |
| - name: Check out source | |
| uses: actions/checkout@v4 | |
| - name: Set up 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: Build and publish immutable workspace image | |
| id: image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: docker/Dockerfile.workspace | |
| platforms: linux/amd64 | |
| push: true | |
| tags: ghcr.io/one-computer/onecomputer-workspace:${{ github.sha }} | |
| labels: | | |
| org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }} | |
| org.opencontainers.image.revision=${{ github.sha }} | |
| provenance: true | |
| sbom: true | |
| cache-from: type=gha,scope=onecomputer-workspace | |
| cache-to: type=gha,mode=max,scope=onecomputer-workspace | |
| - name: Publish digest for E2B template promotion | |
| run: | | |
| echo "Image: ghcr.io/one-computer/onecomputer-workspace@${{ steps.image.outputs.digest }}" >> "$GITHUB_STEP_SUMMARY" | |
| echo "Digest: ${{ steps.image.outputs.digest }}" >> "$GITHUB_STEP_SUMMARY" |