Skip to content

Commit 7e8e26d

Browse files
yelizarievactions-user
authored andcommitted
👽 Update ITPP Runbot files
> Sent from Github Actions (see .github/workflows/itpp-runbot.yml)
1 parent 275e1c7 commit 7e8e26d

5 files changed

Lines changed: 59 additions & 0 deletions

File tree

.github/workflows/itpp-runbot.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: "ITPP Runbot: Rebuild Images"
2+
3+
on:
4+
push:
5+
paths:
6+
- "itpp-runbot/**"
7+
- ".github/workflows/itpp-runbot.yml"
8+
9+
jobs:
10+
rebuild-images:
11+
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Dump GitHub context
15+
env:
16+
GITHUB_CONTEXT: ${{ toJson(github) }}
17+
run: echo "$GITHUB_CONTEXT"
18+
- uses: actions/checkout@v1
19+
- name: Compute ODOO_VERSION
20+
run: |
21+
REF="${{ github.ref }}"
22+
BRANCH=${REF##*/}
23+
ODOO_VERSION=$BRANCH
24+
echo "ODOO_VERSION=$ODOO_VERSION"
25+
# see https://help.github.com/en/actions/automating-your-workflow-with-github-actions/development-tools-for-github-actions
26+
echo "::set-env name=ODOO_VERSION::$ODOO_VERSION"
27+
echo "::set-env name=GIT_BRANCH::$BRANCH"
28+
- name: Dump env context
29+
env:
30+
CONTEXT: ${{ toJson(env) }}
31+
run: echo "$CONTEXT"
32+
- name: Build and publish Docker Image
33+
uses: elgohr/Publish-Docker-Github-Action@master
34+
env:
35+
AGGREGATE: true
36+
PIP_INSTALL_ODOO: false
37+
CLEAN: false
38+
COMPILE: false
39+
with:
40+
name: ${{ github.repository }}/itpp-runbot:${{ env.GIT_BRANCH }}
41+
registry: docker.pkg.github.com
42+
username: ${{ github.actor }}
43+
password: ${{ secrets.GITHUB_TOKEN }}
44+
buildargs: ODOO_VERSION,AGGREGATE,PIP_INSTALL_ODOO,CLEAN,COMPILE
45+
workdir: itpp-runbot/odoo/

.itpp-runbot/config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# See https://github.com/it-projects-llc/itpp-runbot/releases
2+
itpp-runbot-version: master
3+
4+
# POSIX cron syntax. See https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#scheduled-events-schedule
5+
image-rebuilding-schedule: "* 5 * * 0"

.itpp-runbot/images/pip.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# This file is generated in itpp-runbot-install.yml

.itpp-runbot/images/repos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# This file is generated in itpp-runbot-install.yml

.itpp-runbot/volumes/addons.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# list of modules to install before running tests
2+
base-addons:
3+
- mail
4+
5+
# list of modules that will not be installed at any case
6+
excluded-addons:
7+
- hw_proxy

0 commit comments

Comments
 (0)