Files
hub-monorepo/.github/workflows/publish.yml
Shane da Silva aebbb47b3c chore: Automate Docker Hub publishing (#1138)
Set up automation so that when we push the `@farcaster/hubble@X.Y.Z` tag
we will automatically kick off a Docker build and push the resulting
image layers + tag to Docker Hub.
2023-07-14 21:18:21 -04:00

30 lines
691 B
YAML

name: Publish
on:
push:
tags:
- '@farcaster/hubble@*'
concurrency: package-tags
jobs:
publish-docker-image:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Log in so we can push the image layers + tags to Docker Hub
- uses: docker/login-action@v2
with:
username: ${{ secrets.FARCASTERXYZ_DOCKER_HUB_USER }}
password: ${{ secrets.FARCASTERXYZ_DOCKER_HUB_TOKEN }}
- uses: depot/setup-action@v1
- run: ./scripts/publish-image.sh
shell: bash
env:
DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }}
DEPOT_PROJECT_ID: ${{ secrets.DEPOT_PROJECT_ID }}