fix(ci): markdownlint
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2024-04-19 22:03:59 +02:00
parent a25147746c
commit cbdd6227eb
3 changed files with 177 additions and 44 deletions

View File

@ -3,10 +3,9 @@
[![Build Status](https://drone.cryptic.systems/api/badges/volker.raschek/build-image/status.svg)](https://drone.cryptic.systems/volker.raschek/build-image)
[![Docker Pulls](https://img.shields.io/docker/pulls/volkerraschek/build-image)](https://hub.docker.com/r/volkerraschek/build-image)
This project contains all sources to build the container image
`docker.io/volkerraschek/build-image`. The primary goal of the image is only to
provide an environment to compile source code for `go` or `rust` and package
compiled binaries as PKG for Arch Linux or as RPM for RHEL based distributions.
This project contains all sources to build the container image `docker.io/volkerraschek/build-image`. The primary goal
of the image is only to provide an environment to compile source code for `go` or `rust` and package compiled binaries
as PKG for Arch Linux or as RPM for RHEL based distributions.
## Supported environment variables
@ -14,8 +13,8 @@ compiled binaries as PKG for Arch Linux or as RPM for RHEL based distributions.
#### GNUPG_KEY
Import private gpg key via `GPG_KEY`. The private key must be escaped to import
the key inside the container image correctly. For example:
Import private gpg key via `GPG_KEY`. The private key must be escaped to import the key inside the container image
correctly. For example:
```bash
GPG_FPR=YOUR_GPG_FINGERPRINT
@ -24,8 +23,8 @@ GPG_KEY=$(gpg --armor --export-secret-keys ${GPG_FPR} | cat -e | sed -e 's/\$/\\
### makepkg
The `makepkg.conf` configuration is composed from the environment variables with
the prefix `MAKEPKG_`. Below are some examples:
The `makepkg.conf` configuration is composed from the environment variables with the prefix `MAKEPKG_`. Below are some
examples:
`MAKEPKG_PACKAGER="Hugo McKinnock <hugo.mckinnock@example.local>"`
`MAKEPKG_GPGKEY="0123456789"`
@ -35,8 +34,8 @@ the prefix `MAKEPKG_`. Below are some examples:
#### SSH_KEY
Import private ssh key via `SSH_KEY`. The private key must be escaped to import
the key inside the container image correctly. For example:
Import private ssh key via `SSH_KEY`. The private key must be escaped to import the key inside the container image
correctly. For example:
```bash
SSH_KEY=$(cat -e ${HOME}/.ssh/id_rsa | sed -e 's/\$/\\n/g')
@ -46,8 +45,7 @@ SSH_KEY=$(cat -e ${HOME}/.ssh/id_rsa | sed -e 's/\$/\\n/g')
### golang
To use this image for building golang applications execute this in your root
folder of your go project.
To use this image for building golang applications execute this in your root folder of your go project.
```bash
$ docker run \
@ -59,9 +57,8 @@ $ docker run \
### makepkg
With the following example will be an package be build for Arch Linux. Execute
the commond in the root directory of the project, where the `PKGBUILD` file is
located.
With the following example will be an package be build for Arch Linux. Execute the commond in the root directory of the
project, where the `PKGBUILD` file is located.
```bash
$ docker run \
@ -74,8 +71,7 @@ $ docker run \
### rust
If you want to compile instead go rust sourcecode, than you can do it similar to
the golang example.
If you want to compile instead go rust sourcecode, than you can do it similar to the golang example.
```bash
$ docker run \