Skip to content

Commit

Permalink
feat: switch to github + bump library + bump python libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
vrenaville committed Sep 17, 2024
1 parent e5b6f26 commit 2f2bce0
Show file tree
Hide file tree
Showing 71 changed files with 471 additions and 2,075 deletions.
93 changes: 93 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: build

on:
push:
branches:
- "release-4.5.X"
- "dev-4.5.X"
tags:
- "4.*.*.*.*"

pull_request:
branches:
- "release-4.5.X"


env:
TARGET: GHCR
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1

jobs:

build:
runs-on: ubuntu-latest
strategy:
matrix:
odoo_serie: ["11.0","12.0", "13.0", "14.0", "15.0", "16.0", "17.0"]

steps:
- uses: actions/checkout@v4
with:
ref: dev-4.5.X

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
with:
driver: docker

- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/camptocamp/docker-odoo-project
flavor: |
prefix=${{ matrix.odoo_serie }}-4.x,onlatest=true
tags: |
type=raw,value={{branch}}-latest
type=raw,value={{branch}}-{{date 'YYYYMMDD'}}
type=ref,event=tag
type=ref,event=pr
type=schedule,pattern=nightly
type=raw,value={{branch}}-4.x
- name: Setup build dir
run: |
VERSION=${{ matrix.odoo_serie }} SRC=build make setup
- name: Build
uses: docker/build-push-action@v3
with:
context: ./build
push: false
load: true
tags: ci-latest:0.1
labels: ${{ steps.docker_meta.outputs.labels }}


- name: Test
run: make VERSION=${{ matrix.odoo_serie }} test

- name: Login to GitHub Container Registry
if: github.event_name == 'push' || github.event_name == 'schedule'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USER }}
password: ${{ secrets.GHCR_TOKEN }}

- name: Tag & Push
if: github.event_name == 'push' || github.event_name == 'schedule'
id: docker_push
uses: docker/build-push-action@v3
with:
context: ./build
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}

- name: Image digest
run: echo ${{ steps.docker_push.outputs.digest }}


37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

80 changes: 0 additions & 80 deletions 10.0/Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion 10.0/MANIFEST.in

This file was deleted.

103 changes: 0 additions & 103 deletions 10.0/base_requirements.txt

This file was deleted.

52 changes: 0 additions & 52 deletions 10.0/extra_requirements.txt

This file was deleted.

8 changes: 0 additions & 8 deletions 10.0/src_requirements.txt

This file was deleted.

Loading

0 comments on commit 2f2bce0

Please sign in to comment.