Merge branch 'main' into stable #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Stable Docker images | |
on: | |
push: | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]+" | |
jobs: | |
docker-build: | |
strategy: | |
matrix: | |
runner: [ubicloud] | |
runs-on: ${{ matrix.runner }} | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: depot/setup-action@v1 | |
- name: Login to GitHub Container Registry | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{secrets.GITHUB_TOKEN}} | |
- name: Publish PeerDB Stable Image | |
uses: depot/build-push-action@v1 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
token: ${{ secrets.DEPOT_TOKEN }} | |
context: . | |
file: stacks/peerdb-server.Dockerfile | |
push: true | |
tags: | | |
ghcr.io/peerdb-io/peerdb-server:${{ github.ref_name }} | |
ghcr.io/peerdb-io/peerdb-server:latest-stable | |
- name: Publish Flow API Image | |
uses: depot/build-push-action@v1 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
token: ${{ secrets.DEPOT_TOKEN }} | |
context: . | |
file: stacks/flow-api.Dockerfile | |
push: true | |
tags: | | |
ghcr.io/peerdb-io/flow-api:${{ github.ref_name }} | |
ghcr.io/peerdb-io/flow-api:latest-stable | |
- name: Publish Flow Worker Stable Image | |
uses: depot/build-push-action@v1 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
token: ${{ secrets.DEPOT_TOKEN }} | |
context: . | |
file: stacks/flow-worker.Dockerfile | |
push: true | |
tags: | | |
ghcr.io/peerdb-io/flow-worker:${{ github.ref_name }} | |
ghcr.io/peerdb-io/flow-worker:latest-stable | |
- name: Publish Flow Snapshot Worker Stable Image | |
uses: depot/build-push-action@v1 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
token: ${{ secrets.DEPOT_TOKEN }} | |
context: . | |
file: stacks/flow-snapshot-worker.Dockerfile | |
push: true | |
tags: | | |
ghcr.io/peerdb-io/flow-snapshot-worker:${{ github.ref_name }} | |
ghcr.io/peerdb-io/flow-snapshot-worker:latest-stable | |
- name: Build (optionally publish) PeerDB UI Stable Image | |
uses: depot/build-push-action@v1 | |
with: | |
token: ${{ secrets.DEPOT_TOKEN }} | |
platforms: linux/amd64,linux/arm64 | |
context: . | |
file: stacks/peerdb-ui.Dockerfile | |
push: ${{ github.ref == 'refs/heads/main' }} | |
tags: | | |
ghcr.io/peerdb-io/peerdb-ui:${{ github.ref_name }} | |
ghcr.io/peerdb-io/peerdb-ui:latest-stable |