ci: add workflow to deploy to dev channels (requires actions secrets config) (#815)

- uses DEPLOY_REGISTRY, DEPLOY_REGISTRY_PATH, DEPLOY_REGISTRY_API_TOKEN
secrets
This commit is contained in:
Ilya Kreymer 2025-04-03 23:21:48 -07:00 committed by GitHub
parent 66c71d03c8
commit 7421404aee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,41 @@
name: "*** Deploy Crawler to Dev Channel ***"
on:
workflow_dispatch:
inputs:
channel:
description: Crawler Channel
type: choice
required: true
default: dev
options:
- dev
- dev-2
jobs:
build_do_images:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host
- name: Login to Registry
uses: docker/login-action@v2
with:
registry: ${{ secrets.DEPLOY_REGISTRY }}
username: ${{ secrets.DEPLOY_REGISTRY_API_TOKEN }}
password: ${{ secrets.DEPLOY_REGISTRY_API_TOKEN }}
- name: Build Image
uses: docker/build-push-action@v3
with:
context: crawler
push: true
tags: ${{ secrets.DEPLOY_REGISTRY_PATH }}/webrecorder/browsertrix-crawler:${{ github.event.inputs.channel }}
cache-from: type=gha,scope=backend
cache-to: type=gha,scope=backend,mode=max