-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.33 KB
/
Odoo16ArmBuild.yaml
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
name: Odoo16ArmBuild
#
# Since Odoo doesnt' provide an Arm build we need to do one ourselves
# NOTE! This is triggered with odoo-v0.0.1 style tag so we don't always
# do this
on:
push:
tags:
- 'odoo-*'
env:
REGISTRY: ghcr.io
IMAGE_NAME: diploi/odoo16-arm
jobs:
build:
runs-on: buildjet-8vcpu-ubuntu-2204-arm
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to the GitHub container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: "{{defaultContext}}:Odoo16Docker"
file: Dockerfile
platforms: linux/arm64
pull: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}