forked from
jollywhoppers.com/witchsky.app
Bluesky app fork with some witchin' additions 馃挮
1name: build-and-push-embedr-aws
2on:
3 push:
4 branches:
5 - main
6 - echoprom_fix
7
8env:
9 REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }}
10 USERNAME: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_USERNAME }}
11 PASSWORD: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_PASSWORD }}
12 IMAGE_NAME: embed
13
14jobs:
15 embedr-container-aws:
16 if: github.repository == 'bluesky-social/social-app'
17 runs-on: ubuntu-latest
18 permissions:
19 contents: read
20 packages: write
21 id-token: write
22
23 steps:
24 - name: Checkout repository
25 uses: actions/checkout@v4
26
27 - name: Setup Docker buildx
28 uses: docker/setup-buildx-action@v1
29
30 - name: Log into registry ${{ env.REGISTRY }}
31 uses: docker/login-action@v2
32 with:
33 registry: ${{ env.REGISTRY }}
34 username: ${{ env.USERNAME}}
35 password: ${{ env.PASSWORD }}
36
37 - name: Extract Docker metadata
38 id: meta
39 uses: docker/metadata-action@v4
40 with:
41 images: |
42 ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
43 tags: |
44 type=sha,enable=true,priority=100,prefix=,suffix=,format=long
45
46 - name: Build and push Docker image
47 id: build-and-push
48 uses: docker/build-push-action@v4
49 with:
50 context: .
51 push: ${{ github.event_name != 'pull_request' }}
52 file: ./Dockerfile.embedr
53 tags: ${{ steps.meta.outputs.tags }}
54 labels: ${{ steps.meta.outputs.labels }}
55 cache-from: type=gha
56 cache-to: type=gha,mode=max