-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1166 from tobias-urdin/4.4-gha
Migrate CI to Github Actions
- Loading branch information
Showing
20 changed files
with
249 additions
and
142 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
FROM ubuntu:20.04 | ||
ENV GNOCCHI_WORKSPACE /github/workspace | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
#NOTE(tobias-urdin): need gnupg for apt-key | ||
RUN apt-get update -y && apt-get install -qy gnupg software-properties-common | ||
RUN add-apt-repository -y ppa:deadsnakes/ppa | ||
RUN apt-get update -y && apt-get install -qy \ | ||
locales \ | ||
git \ | ||
wget \ | ||
curl \ | ||
nodejs \ | ||
npm \ | ||
python3 \ | ||
python3-dev \ | ||
python3-pip \ | ||
python3.6 \ | ||
python3.6-dev \ | ||
# Needed for uwsgi core routing support | ||
build-essential \ | ||
libffi-dev \ | ||
libpq-dev \ | ||
postgresql \ | ||
memcached \ | ||
mysql-client \ | ||
mysql-server \ | ||
# For Ceph | ||
librados-dev \ | ||
liberasurecode-dev \ | ||
python3-rados \ | ||
ceph \ | ||
# For prometheus | ||
libsnappy-dev \ | ||
libprotobuf-dev \ | ||
# For redis | ||
redis-server \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
#NOTE(sileht): really no utf-8 in 2017 !? | ||
ENV LANG en_US.UTF-8 | ||
RUN update-locale | ||
RUN locale-gen $LANG | ||
|
||
#NOTE(sileht): Upgrade python dev tools | ||
RUN python3 -m pip install -U pip tox virtualenv | ||
RUN python3.6 -m pip install -U pip tox virtualenv | ||
|
||
RUN npm install [email protected] --global | ||
|
||
RUN groupadd --gid 1001 tester | ||
RUN useradd --uid 1001 --gid 1001 --home-dir $GNOCCHI_WORKSPACE --shell /bin/bash tester | ||
USER tester | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: 'Gnocchi Container' | ||
description: 'Run command inside Gnocchi Container' | ||
author: 'Tobias Urdin' | ||
inputs: | ||
command: | ||
description: 'Command to run' | ||
required: true | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.command }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
$@ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Gnocchi | ||
|
||
on: pull_request | ||
|
||
# NOTE(tobias-urdin): If you change any jobs make sure to modify | ||
# the Mergify.io config in .mergify.yml to include the jobs! | ||
|
||
jobs: | ||
doc: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
env: | ||
- docs | ||
- docs-gnocchi-web | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: ./.github/actions/gnocchi-container | ||
with: | ||
command: tox -e ${{ matrix.env }} | ||
|
||
check: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
env: | ||
- pep8 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ./.github/actions/gnocchi-container | ||
with: | ||
command: tox -e ${{ matrix.env }} | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: | ||
- py36 | ||
- py38 | ||
env: | ||
- mysql-ceph-upgrade-from-4.3 | ||
- postgresql-file-upgrade-from-4.3 | ||
- mysql-file | ||
- mysql-swift | ||
- mysql-s3 | ||
- mysql-ceph | ||
- postgresql-file | ||
- postgresql-swift | ||
- postgresql-s3 | ||
- postgresql-ceph | ||
exclude: | ||
- env: mysql-ceph-upgrade-from-4.3 | ||
python: py36 | ||
- env: mysql-ceph | ||
python: py36 | ||
- env: postgresql-ceph | ||
python: py36 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ./.github/actions/gnocchi-container | ||
with: | ||
command: tox -e ${{ matrix.python }}-${{ matrix.env }} |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
=================================== | ||
|
||
.. release-notes:: | ||
:branch: origin/stable/3.0 | ||
:branch: origin/eol/3.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
=================================== | ||
|
||
.. release-notes:: | ||
:branch: origin/stable/3.1 | ||
:branch: origin/eol/3.1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
=================================== | ||
|
||
.. release-notes:: | ||
:branch: origin/stable/4.0 | ||
:branch: origin/eol/4.0 |
Oops, something went wrong.