42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
name: Embedded builder creation
|
|
run-name: ${{ gitea.actor }} is building the embedded-builder docker image
|
|
on: [push]
|
|
env:
|
|
BUILD_IMAGE: git.firebee.nl/${{ gitea.repository_owner }}/embedded-builder
|
|
|
|
jobs:
|
|
Embedded-Builder-Image:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: lowercase conversion
|
|
run: echo "BUILD_IMAGE_LC=${BUILD_IMAGE,,}" >>${GITEA_ENV}
|
|
|
|
- name: Extract Docker image metadata
|
|
id: meta
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: ${{ env.BUILD_IMAGE_LC }}
|
|
|
|
- name: Log in to Firebee registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.firebee.nl
|
|
username: ${{ vars.BUILDER_USERNAME }}
|
|
password: ${{ secrets.BUILDER_PASSWORD }}
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
tags:
|
|
- ${{ steps.meta.outputs.tags }}
|
|
- latest
|
|
annotations: ${{ steps.meta.outputs.annotations }}
|
|
provenance: true
|
|
sbom: true |