Skip to content

Commit

Permalink
Test build odoo..
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusAhlfors committed Oct 16, 2023
1 parent 3339940 commit 69c2d01
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/OdooBuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: OdooBuild

on:
push:
#tags:
# - 'odoo*'

env:
REGISTRY: ghcr.io
IMAGE_NAME: odoo

jobs:
build:
runs-on: ubuntu-latest
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: .
file: OdooDocker16/Dockerfile
platforms: linux/arm64
pull: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 69c2d01

Please sign in to comment.