Something went wrong. Try again.
Explore blocks, labels, lists, and posts on Bluesky. skytrace.aly.town
typescript react bluesky atproto
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263name: Build and Push Container
on: push: branches: [main] pull_request: branches: [main]
jobs: check: runs-on: ubuntu-latest permissions: contents: read
steps: - name: Checkout uses: actions/checkout@v4
- name: Set up Bun uses: oven-sh/setup-bun@v2 with: bun-version: 1.3.14
- name: Install dependencies run: bun install --frozen-lockfile
- name: Check project run: bun run check
build: needs: check runs-on: ubuntu-latest permissions: contents: read packages: write
steps: - name: Checkout uses: actions/checkout@v4
- name: Set up Docker Buildx uses: docker/setup-buildx-action@v3
- name: Login to GHCR if: github.event_name != 'pull_request' uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push uses: docker/build-push-action@v6 with: context: . file: ./Containerfile push: ${{ github.event_name != 'pull_request' }} tags: | ghcr.io/${{ github.repository }}:latest ghcr.io/${{ github.repository }}:${{ github.sha }} cache-from: type=gha cache-to: type=gha,mode=max