mirror of
https://github.com/farcasterxyz/hub-monorepo.git
synced 2026-02-19 01:04:38 -05:00
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.
30 lines
691 B
YAML
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 }}
|