A demon compendium, deterministically derived from DIDs + PDS records. haunt.at
atmosphere atproto
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142name: Build and Push Container
on: push: branches: [main] pull_request: branches: [main]
jobs: build: 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