mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-10-19 14:33:17 +00:00
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:
parent
66c71d03c8
commit
7421404aee
1 changed files with 41 additions and 0 deletions
41
.github/workflows/deploy-dev-channel.yaml
vendored
Normal file
41
.github/workflows/deploy-dev-channel.yaml
vendored
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue