build(deps): update debian docker tag to v12 #86
Workflow file for this run
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
name: Release | |
on: | |
push: | |
jobs: | |
semantic-release: | |
name: Release | |
outputs: | |
new_release_published: ${{ steps.semantic.outputs.new_release_published }} | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Semantic Release | |
id: semrel | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
uses: cycjimmy/semantic-release-action@v4 | |
docker-build: | |
name: Docker build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Docker build | |
id: docker_build | |
uses: docker/build-push-action@v5 | |
docker-push: | |
name: Docker push | |
needs: | |
- semantic-release | |
- docker-build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Login to DockerHub | |
if: needs.semantic-release.outputs.new_release_published == 'true' | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Set up QEMU | |
if: needs.semantic-release.outputs.new_release_published == 'true' | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
if: needs.semantic-release.outputs.new_release_published == 'true' | |
uses: docker/setup-buildx-action@v2 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
labels: | | |
org.opencontainers.image.url=https://hub.docker.com/r/rubencabrera/odoo-base-image | |
images: rubencabrera/odoo-base-image | |
tags: | | |
type=ref,event=tag | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
- name: Docker build and push | |
if: needs.semantic-release.outputs.new_release_published == 'true' | |
id: docker_push | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
tags: | | |
rubencabrera/odoo-base-image:${{ needs.semantic-release.outputs.new_release_version }} | |
labels: ${{ steps.meta.outputs.labels }} |