-
Notifications
You must be signed in to change notification settings - Fork 28
68 lines (61 loc) · 2.09 KB
/
manila.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright (c) 2023 VEXXHOST, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
name: manila
on:
pull_request:
paths:
- .github/workflows/manila.yml
push:
branches:
- main
paths:
- .github/workflows/manila.yml
release:
types:
- published
workflow_dispatch:
jobs:
build-image:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y debootstrap tox qemu-utils
pipx install python-swiftclient
pipx inject python-swiftclient python-keystoneclient
- name: Cache DIB_IMAGE_CACHE
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: ~/.cache/image-create
key: dib-image-cache
- name: Build image
run: tox -ebuild-manila-image
- name: Publish image
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'release'
run: |
swift post -r '.r:*,.rlistings' atmosphere-images
swift upload atmosphere-images manila-*.qcow2
env:
OS_AUTH_URL: https://auth.vexxhost.net/v3
OS_REGION_NAME: ca-ymq-1
OS_USER_DOMAIN_NAME: Default
OS_USERNAME: ${{ secrets.OS_USERNAME }}
OS_PASSWORD: ${{ secrets.OS_PASSWORD }}
OS_PROJECT_DOMAIN_NAME: Default
OS_PROJECT_NAME: ${{ secrets.OS_PROJECT_NAME }}