manual deploy #89
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: main | |
on: | |
push: | |
workflow_dispatch: | |
inputs: | |
debug_enabled: | |
description: 'Run the build with tmate debugging enabled' | |
required: false | |
default: false | |
acestream: | |
description: 'acestream update indicator' | |
required: false | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_REPO: acestream-engine | |
TAG: ${{ github.ref_name }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
ENDPOINT: ${{ secrets.DOCKER_USERNAME }}/acestream-service/actions/workflows/main.yml | |
TOKEN: ${{ secrets.ACESTREAM_SERVICE_TOKEN }} | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup | |
run: ./setup.sh | |
- name: test | |
run: ./test.sh | |
- name: Setup tmate session | |
if: ${{ github.event_name == 'workflow_dispatch' && | |
github.event.inputs.debug_enabled || | |
failure() }} | |
uses: mxschmitt/action-tmate@v3 | |
- name: deploy | |
env: | |
GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_USERNAME: ${{ github.actor }} | |
GITHUB_REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
if: ${{ startswith(github.ref, 'refs/tags/') }} || | |
github.event.inputs.acestream }} | |
run: ./deploy.sh |