Skip to content

chore(deps): update dependency jesseduffield/lazygit to v0.64.1 (docker/codex-workspace) #387

chore(deps): update dependency jesseduffield/lazygit to v0.64.1 (docker/codex-workspace)

chore(deps): update dependency jesseduffield/lazygit to v0.64.1 (docker/codex-workspace) #387

name: Build Codex Workspace Image
on:
push:
branches: [main]
paths: ['docker/codex-workspace/**']
pull_request:
paths: ['docker/codex-workspace/**']
workflow_dispatch: {}
jobs:
build-and-push:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
- uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
images: ghcr.io/boxp/arch/codex-workspace
tags: |
type=raw,value={{date 'YYYYMMDDHHmm'}},enable={{is_default_branch}}
type=sha,prefix=sha-,format=short
type=raw,value=latest,enable={{is_default_branch}}
- uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: docker/codex-workspace
# A manually dispatched feature build publishes only its immutable SHA tag;
# metadata-action keeps latest and the timestamp tag limited to main.
push: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64