service_customLithops #3
Workflow file for this run
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: Process Issue State | |
on: | |
issues: | |
types: | |
- labeled | |
jobs: | |
do-changes: | |
if: startsWith(github.event.label.name, 'do_changes') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Remove current labels | |
uses: issue-ops/[email protected] | |
with: | |
action: remove | |
issue_number: ${{ github.event.issue.number }} | |
labels: | | |
do_changes | |
FAILED_TESTING | |
- name: Add new label | |
uses: issue-ops/[email protected] | |
with: | |
action: add | |
issue_number: ${{ github.event.issue.number }} | |
labels: "CHANGES_REQUESTED" | |
do-tests: | |
if: startsWith(github.event.label.name, 'do_tests') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install sshuttle | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y sshuttle | |
- name: Configure SSH | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
run: | | |
mkdir -p ~/.ssh | |
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
echo -e "Host *\n\tStrictHostKeyChecking no\n" > ~/.ssh/config | |
- name: Start sshuttle VPN | |
run: | | |
sshuttle --dns --no-latency-control -r one@${{ secrets.VPN_SERVER }} 10.0.0.0/16 --daemon | |
- name: Trigger Jenkins | |
run: | | |
curl "$JENKINS_URL/job/one-community-distro/build?token=${{ secrets.ONE_DISTRO_TOKEN }}" | |
- name: Remove current labels | |
uses: issue-ops/[email protected] | |
with: | |
action: remove | |
issue_number: ${{ github.event.issue.number }} | |
labels: | | |
do_tests | |
CHANGES_REQUESTED | |
- name: Add new label | |
uses: issue-ops/[email protected] | |
with: | |
action: add | |
issue_number: ${{ github.event.issue.number }} | |
labels: "IN_TESTING" |