mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-27 16:10:30 +08:00
52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
name: Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [released]
|
|
|
|
jobs:
|
|
build-backend:
|
|
uses: ./.github/workflows/docker-build.yaml
|
|
with:
|
|
image-name: oasst-backend
|
|
context: .
|
|
dockerfile: docker/Dockerfile.backend
|
|
build-args: ""
|
|
build-web:
|
|
uses: ./.github/workflows/docker-build.yaml
|
|
with:
|
|
image-name: oasst-web
|
|
context: .
|
|
dockerfile: docker/Dockerfile.website
|
|
build-args: ""
|
|
build-bot:
|
|
uses: ./.github/workflows/docker-build.yaml
|
|
with:
|
|
image-name: oasst-discord-bot
|
|
context: .
|
|
dockerfile: docker/Dockerfile.discord-bot
|
|
build-args: ""
|
|
deploy-dev:
|
|
needs: [build-backend, build-web, build-bot]
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
WEB_DISCORD_CLIENT_ID: ${{ secrets.DEV_WEB_DISCORD_CLIENT_ID }}
|
|
WEB_DISCORD_CLIENT_SECRET: ${{ secrets.DEV_WEB_DISCORD_CLIENT_SECRET }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Run playbook
|
|
uses: dawidd6/action-ansible-playbook@v2
|
|
with:
|
|
# Required, playbook filepath
|
|
playbook: dev.yaml
|
|
# Optional, directory where playbooks live
|
|
directory: ansible
|
|
# Optional, SSH private key
|
|
key: ${{secrets.DEV_NODE_PRIVATE_KEY}}
|
|
# Optional, literal inventory file contents
|
|
inventory: |
|
|
[dev]
|
|
dev01 ansible_host=${{secrets.DEV_NODE_IP}} ansible_connection=ssh ansible_user=web-team
|