A decentralized music tracking and discovery platform built on AT Protocol 馃幍
rocksky.app
spotify
atproto
lastfm
musicbrainz
scrobbling
listenbrainz
1name: Build and Push Postgres Docker Image
2
3on:
4 push:
5 branches:
6 - main
7 paths:
8 - "crates/xataid-extension/**"
9 - ".github/workflows/docker-build-and-push-postgres.yml"
10
11jobs:
12 build-and-push:
13 runs-on: ubuntu-latest
14 permissions:
15 contents: read
16 packages: write
17
18 steps:
19 - name: Checkout repository
20 uses: actions/checkout@v4
21
22 - name: Log in to Docker
23 uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
24 with:
25 username: ${{ secrets.DOCKERHUB_USERNAME }}
26 password: ${{ secrets.DOCKERHUB_PASSWORD }}
27
28 - name: Build and Publish image to Docker Hub
29 uses: fluentci-io/setup-fluentci@v5
30 with:
31 wasm: true
32 plugin: buildx
33 args: |
34 build_cloud --platform linux/amd64,linux/arm64 -t tsiry/postgres-xataid:latest crates/xataid-extension "--build-arg GITHUB_TOKEN=\"${GITHUB_ACCESS_TOKEN}\"" --push
35 env:
36 GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37 BUILDX_BUILDER: tsiry/rockbox-builder
38
39 - name: Log in to GitHub Container Registry
40 uses: docker/login-action@v3
41 with:
42 registry: ghcr.io
43 username: ${{ github.actor }}
44 password: ${{ secrets.GITHUB_TOKEN }}
45
46 - name: Publish to Github Container Registry
47 run: |
48 docker pull tsiry/postgres-xataid:latest
49 docker tag tsiry/postgres-xataid:latest ghcr.io/tsirysndr/postgres-xataid:${{ github.sha }}
50 docker tag tsiry/postgres-xataid:latest ghcr.io/tsirysndr/postgres-xataid:latest
51 docker push ghcr.io/tsirysndr/postgres-xataid:latest