Files
build-push-image/action.yaml
2025-04-14 16:09:28 +02:00

60 lines
1.8 KiB
YAML

name: 'build-push-image'
description: 'Builds a container image, tags it, pushes to registry, and reports status to Healthchecks.io'
author: 'Eric Coissac'
inputs:
image_name:
description: 'name of the image'
required: true
image_tags:
description: 'tags added to the image'
required: true
add_version_tag:
description: 'should I add a tag corresponding to the version of the packaged software'
required: false
default: true
build_command:
description: 'Command used to build the image (docker|podman)'
required: false
default: docker
tag_command:
description: 'Command used to tag the image (docker|podman)'
required: false
default: podman
registry_server:
description: 'Address of the image registry server'
required: false
default: "niepce.petite-maison-orange.fr"
registry_user:
description: 'User used for the connection to the image registry'
required: false
default: ${{ secrets.PMO_REGISTRY_USER }}
registry_password:
description: 'Password used for the connection to the image registry'
required: false
default: ${{ secrets.PMO_REGISTRY_PASSWORD }}
version_file:
description: 'Name of the file containing the version number'
required: false
default: 'software_version.txt'
check_server:
description: 'Address of the Healthchecks server'
required: false
default: 'https://haoma.petite-maison-orange.fr'
check_uuid:
description: 'Deuxième paramètre'
required: false
default: ''
debug:
description: 'Run the action in debug mode'
required: false
default: false
type: boolean
runs:
using: 'composite'
steps:
- name: Load bash library
uses: https://gargoton.petite-maison-orange.fr/pmo-actions/bash-library@main