Files
sshwifty-udp-telnet-http/.github/workflows/workflow.yml

35 lines
1.1 KiB
YAML

name: Sshwifty-CI
on:
push:
branches: [master, dev]
tags: ["**-release"]
pull_request:
jobs:
CI:
runs-on: ubuntu-latest
steps:
- name: Checking out source code
uses: actions/checkout@v2
with:
fetch-depth: 50
- name: Run CI
run: |
export GITHUB_USER="${{ github.repository_owner }}"
export GITHUB_USER_TOKEN="${{ secrets.GITHUB_TOKEN }}"
export DOCKER_HUB_USER="${{ secrets.DOCKER_HUB_USERNAME }}"
export DOCKER_HUB_PASSWORD="${{ secrets.DOCKER_HUB_PASSWORD }}"
export COVERALLS_TOKEN="${{ secrets.COVERALLS_TOKEN }}"
export DOCKER_CUSTOM_COMMAND='echo "GitHub Action Build"'
sudo add-apt-repository -y ppa:jacob/virtualisation
sudo apt-get update -y
sudo apt-get install -y qemu qemu-user-static binfmt-support
sudo systemctl restart docker
cp ./.ci.sh ./.github-action-ci-script.sh && chmod +x ./.github-action-ci-script.sh && time ./.github-action-ci-script.sh && rm ./.github-action-ci-script.sh