mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at ruby-v 57 lines 1.6 kB view raw
1name: build-and-push-bskyweb-ghcr 2on: 3 push: 4 branches: 5 - main 6 - jake/bskyweb-additions 7env: 8 REGISTRY: ghcr.io 9 USERNAME: ${{ github.actor }} 10 PASSWORD: ${{ secrets.GITHUB_TOKEN }} 11 12 # github.repository as <account>/<repo> 13 IMAGE_NAME: ${{ github.repository }} 14 15jobs: 16 bskyweb-container-ghcr: 17 if: github.repository == 'bluesky-social/social-app' 18 runs-on: ubuntu-latest 19 permissions: 20 contents: read 21 packages: write 22 id-token: write 23 24 steps: 25 - name: Checkout repository 26 uses: actions/checkout@v3 27 28 - name: Setup Docker buildx 29 uses: docker/setup-buildx-action@v1 30 31 - name: Log into registry ${{ env.REGISTRY }} 32 uses: docker/login-action@v2 33 with: 34 registry: ${{ env.REGISTRY }} 35 username: ${{ env.USERNAME }} 36 password: ${{ env.PASSWORD }} 37 38 - name: Extract Docker metadata 39 id: meta 40 uses: docker/metadata-action@v4 41 with: 42 images: | 43 ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} 44 tags: | 45 type=sha,enable=true,priority=100,prefix=bskyweb:,suffix=,format=long 46 47 - name: Build and push Docker image 48 id: build-and-push 49 uses: docker/build-push-action@v4 50 with: 51 context: . 52 push: ${{ github.event_name != 'pull_request' }} 53 file: ./Dockerfile 54 tags: ${{ steps.meta.outputs.tags }} 55 labels: ${{ steps.meta.outputs.labels }} 56 cache-from: type=gha 57 cache-to: type=gha,mode=max