File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ on : [pull_request]
2+
3+ jobs :
4+ devstack_action_defaults :
5+ runs-on : ubuntu-latest
6+ name : A job to deploy devstack with defaults
7+ steps :
8+ - uses : actions/checkout@v2
9+ - id : devstack-action
10+ uses : actions/devstack-action@v1
11+ - name : Upload logs artifacts on failure
12+ if : failure()
13+ uses : actions/upload-artifact@v2
14+ with :
15+ name : devstack-logs
16+ path : /tmp/devstack-logs/*
Original file line number Diff line number Diff line change 1+ name : ' devstack-action'
2+ description : ' Deploy OpenStack with devstack'
3+ inputs :
4+ enabled_services :
5+ description : ' Add or remove services to deploy via devstack'
6+ default : ' '
7+ log_dir :
8+ description : ' Directory for logs'
9+ default : ' /tmp/devstack-logs'
10+ runs :
11+ using : " composite"
12+ steps :
13+ - name : Install python pip
14+ run : |
15+ python -m pip install --upgrade pip
16+ # https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md#mysql
17+ - name : Start MySQL
18+ run : |
19+ sudo systemctl start mysql.service
20+ - name : Checkout Devstack
21+ uses : actions/checkout@v2
22+ with :
23+ repository : openstack/devstack
24+ path : ./devstack
25+ - name : Configure devstack
26+ run : |
27+ cat <<EOF > local.conf
28+ [[local|localrc]]
29+ ADMIN_PASSWORD=secret
30+ DATABASE_PASSWORD=root
31+ RABBIT_PASSWORD=secret
32+ SERVICE_PASSWORD=secret
33+ SWIFT_HASH=1234123412341234
34+ ENABLED_SERVICES+=${{ inputs.enabled_services }}
35+ LOGFILE=${{ inputs.log_dir }}/devstack.log
36+ EOF
37+ working-directory : ./devstack
38+ - name : Run devstack
39+ run : ./stack.sh
40+ working-directory : ./devstack
You can’t perform that action at this time.
0 commit comments