-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
22ee057
commit 02c3d97
Showing
14 changed files
with
308 additions
and
330 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,20 @@ | ||
name: Docker build | ||
on: | ||
push: | ||
|
||
jobs: | ||
docker-build: | ||
name: Docker build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Docker build | ||
id: docker_build | ||
uses: docker/build-push-action@v5 |
This file was deleted.
Oops, something went wrong.
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,43 @@ | ||
name: Docker Push | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
docker-push: | ||
name: Docker push | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Docker metadata | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
labels: | | ||
org.opencontainers.image.url=https://hub.docker.com/r/rubencabrera/odoo-docker | ||
images: rubencabrera/odoo-docker | ||
tags: | | ||
type=ref,event=tag | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}}.{{patch}} | ||
- name: Docker build and push | ||
id: docker_push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
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 |
---|---|---|
@@ -1,58 +1,23 @@ | ||
name: Release | ||
name: Semantic Release | ||
on: | ||
push: | ||
branches: | ||
- 12 | ||
- 14 | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
semantic-release: | ||
name: Semantic Release | ||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
- name: Semantic Release | ||
id: semantic | ||
id: semrel | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
uses: cycjimmy/semantic-release-action@v2 | ||
with: | ||
extra_plugins: | | ||
@semantic-release/commit-analyzer | ||
@semantic-release/git | ||
@semantic-release/release-notes-generator | ||
@semantic-release/github | ||
- name: Set up QEMU | ||
if: steps.semantic.outputs.new_release_published == 'true' | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
if: steps.semantic.outputs.new_release_published == 'true' | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Docker meta | ||
id: meta | ||
if: steps.semantic.outputs.new_release_published == 'true' | ||
uses: crazy-max/ghaction-docker-meta@v4 | ||
with: | ||
labels: | | ||
org.opencontainers.image.url=https://hub.docker.com/r/rubencabrera/odoo-docker | ||
images: rubencabrera/odoo-docker | ||
tags: | | ||
type=ref,event=tag | ||
type=semver,pattern={{version}} | ||
- name: Login to DockerHub | ||
if: steps.semantic.outputs.new_release_published == 'true' | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Docker build and push | ||
if: steps.semantic.outputs.new_release_published == 'true' | ||
id: docker_build | ||
uses: docker/build-push-action@v3 | ||
with: | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: | | ||
rubencabrera/odoo-docker:${{ steps.semantic.outputs.new_release_version }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
GITHUB_TOKEN: ${{ secrets.SEMREL_GITHUB_TOKEN }} | ||
uses: cycjimmy/semantic-release-action@v4 |
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,20 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"@semantic-release/commit-analyzer", | ||
{ | ||
"preset": "angular", | ||
"releaseRules": [ | ||
{"type": "docs", "scope": "README", "release": "patch"}, | ||
{"type": "refactor", "release": "patch"}, | ||
{"type": "style", "release": "patch"}, | ||
{"type": "build", "release": "patch"} | ||
] | ||
} | ||
], | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/github" | ||
], | ||
"repositoryUrl": "https://github.com/rubencabrera/odoo-docker.git", | ||
"tagFormat": "${version}" | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# DOCKER image to run odoo 12 with Odoo Community Backports and OCA addons | ||
# DOCKER image to run odoo 14 with Odoo Community Backports and OCA addons | ||
FROM rubencabrera/odoo-base-image:14.1.1 | ||
MAINTAINER Rubén Cabrera Martínez <[email protected]> | ||
EXPOSE 8069 8071 8072 | ||
|
Oops, something went wrong.