Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 2.06 KB

README.md

File metadata and controls

67 lines (47 loc) · 2.06 KB

Mojira Deploy GitHub Action

GitHub Action for deploying Mojira community bots to Azure.

Example workflow

name: Build and deploy

jobs:
  build:
    steps:
    - name: Build
      # ...
    - name: Deploy
      uses: mojira/deploy@main
      with:
        azure_client_id: ${{ secrets.AZURE_CLIENT_ID }}
        azure_tenant_id: ${{ secrets.AZURE_TENANT_ID }}
        azure_subscription_id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
        bastion_name: ${{ secrets.BASTION_NAME }}
        resource_group: ${{ secrets.RESOURCE_GROUP }}
        resource_id: ${{ secrets.RESOURCE_ID }}
        ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
        username: example
        artifact_paths: |
          build/lib
          build/bin
          config.yml
        artifact_destination: /home/example/app
        script: |
          ./start.sh
          echo Successfully deployed!

Options

All options without a default are required.

  • azure_client_id - string - Client ID for Azure.

  • azure_tenant_id - string - Tenant ID for Azure.

  • azure_subscription_id - string - Subscription ID for Azure.

  • bastion_name - string - Name of the Bastion to deploy to.

  • bastion_ip - string - IP of the Bastion tunnel. Default: localhost

  • bastion_port - integer - Port number of the Bastion tunnel. Default: 50022

  • resource_group - string - Resource group to deploy to.

  • resource_id - string - Resource ID to deploy to.

  • resource_id - string - Resource ID to deploy to.

  • ssh_private_key - string - Private SSH key to use for connecting.

  • username - string - Username for authentication.

  • artifact_paths - string - Paths to artifacts (folders or files) to upload. String with exactly one path per line, and an empty line at the end.

  • artifact_destination - string - Target folder for artifact upload.

  • rsync_args - string - Arguments for uploading artifacts via rsync. Default: -avhW --delete

  • script - string - Script to run after uploading of artifacts. Default: (empty)