69 Commits

Author SHA1 Message Date
ea5d986ea6 chore(deps): update docker/setup-buildx-action action to v3.11.1
All checks were successful
Lint Markdown files / markdown-lint (pull_request) Successful in 11s
Lint Markdown files / markdown-lint (push) Successful in 11s
Release / push-amd64 (push) Successful in 17m33s
Release / sync-to-hub-docker-io (push) Successful in 1m20s
2025-06-18 10:02:57 +00:00
7241cc523f chore(deps): update docker/setup-buildx-action action to v3.11.0
All checks were successful
Lint Markdown files / markdown-lint (pull_request) Successful in 11s
Lint Markdown files / markdown-lint (push) Successful in 10s
Release / push-amd64 (push) Successful in 17m33s
Release / sync-to-hub-docker-io (push) Successful in 1m20s
2025-06-16 13:03:01 +00:00
e044ad3daf chore(deps): update davidanson/markdownlint-cli2-action action to v20
All checks were successful
Lint Markdown files / markdown-lint (pull_request) Successful in 4s
Lint Markdown files / markdown-lint (push) Successful in 4s
Release / push-amd64 (push) Successful in 2m49s
Release / sync-to-hub-docker-io (push) Successful in 12m52s
2025-05-15 07:03:42 +00:00
96422feb53 docs(README): allow duplicate headings
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 4s
Release / push-amd64 (push) Successful in 2m44s
Release / sync-to-hub-docker-io (push) Successful in 59s
2025-05-13 18:37:51 +02:00
191d8e99f3 docs(README): use git.cryptic.systems
Some checks failed
Release / sync-to-hub-docker-io (push) Blocked by required conditions
Lint Markdown files / markdown-lint (push) Failing after 5s
Update Docker Hub Description / update-description-on-hub-docker-io (push) Successful in 13s
Release / push-amd64 (push) Has been cancelled
2025-05-13 18:34:25 +02:00
6ebfca1f92 fix(ci): replace drone with gitea actions 2025-05-13 18:31:58 +02:00
af18e4012a fix(Makefile): get rid of unqualified container images 2025-05-12 22:47:17 +02:00
c970ca376e docs(README): migrate from docker.io to git.cryptic.systems 2025-05-12 18:19:07 +02:00
7d0930fc24 style(markdownlint): update configuration 2025-05-09 11:27:40 +02:00
ba690e3fc6 docs(README): remove drone badge 2025-05-08 21:47:17 +02:00
03895de0e0 fix(makefile): remove the deletion of the base image via make clean 2025-05-08 18:43:54 +02:00
26128acafd fix(makefile): remove unqualified image name 2025-05-08 18:41:27 +02:00
d4d14aace7 chore(ci): use upstream container image registry
Some checks failed
continuous-integration/drone/push Build is failing
2025-04-02 21:30:48 +02:00
d7462bfd36 chore(ci): rollback plugins/docker to 20.18.6
Some checks failed
continuous-integration/drone/push Build is failing
2025-04-02 10:43:06 +02:00
9102653939 chore(ci): use container image mirror
Some checks failed
continuous-integration/drone/push Build is failing
2025-04-02 09:53:41 +02:00
614bc5c52f chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.44.0
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2025-04-01 19:05:08 +00:00
01907606ce fix(Makefile): make FQIN configurable
Some checks failed
continuous-integration/drone/push Build is failing
2025-04-01 20:45:07 +02:00
d7491888c6 fix(Makefile): pull image from git.cryptic.systems
Some checks failed
continuous-integration/drone/push Build is failing
2025-04-01 20:37:12 +02:00
8cb74a3152 chore(deps): update volkerraschek/markdownlint docker tag to v0.43.0
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2025-03-30 19:03:55 +00:00
ad4317cf0e chore(renovate): use configuration preset
Some checks failed
continuous-integration/drone/push Build is failing
2025-03-30 20:49:29 +02:00
a7aaa7b100 chore(renovate): use configuration preset
Some checks failed
continuous-integration/drone/push Build is failing
2025-03-30 20:48:50 +02:00
ab76d2e80c chore(deps): update docker.io/plugins/docker docker tag to v20.18.8
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2025-03-26 20:03:33 +00:00
2bc7928a99 chore(deps): update quay.io/skopeo/stable docker tag to v1.18.0
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2025-02-28 17:04:10 +00:00
8261cefaf1 chore(deps): update docker.io/plugins/docker docker tag to v20.18.7
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2025-02-18 08:03:10 +00:00
ea552ae0cb chore(deps): update docker.io/plugins/docker docker tag to v20.18.6
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-12-25 05:03:20 +00:00
969ebe7f83 chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.43.0
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-12-03 14:05:11 +00:00
5e6f033398 chore(deps): update docker.io/plugins/docker docker tag to v20.18.5
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-11-29 11:03:29 +00:00
4bd01c4c66 chore(deps): update git.cryptic.systems/volker.raschek/git docker tag to v1.4.0
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-11-25 23:03:57 +00:00
f4099d1476 chore(deps): update quay.io/skopeo/stable docker tag to v1.17.0
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-11-21 17:03:24 +00:00
a1d8fe227c chore(deps): update quay.io/skopeo/stable docker tag to v1.16.1
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-10-14 19:52:42 +00:00
4eae4680c6 chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.42.0
Some checks reported errors
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build was killed
2024-10-14 19:05:00 +00:00
13081a41cc chore(deps): update docker.io/plugins/docker docker tag to v20.18.4
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-08-22 16:03:15 +00:00
4576b7c8c1 chore(deps): update docker.io/plugins/docker docker tag to v20.18.3
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-08-18 19:03:48 +00:00
1ae6b75ee6 chore(deps): update quay.io/skopeo/stable docker tag to v1.16.0
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-08-18 16:03:32 +00:00
9ff52d9607 chore(deps): update docker.io/plugins/docker docker tag to v20.18.2
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-07-23 19:04:50 +00:00
bd7cba8651 chore(deps): update quay.io/skopeo/stable docker tag to v1.15.2
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-07-16 16:02:51 +00:00
d5e5b6db55 chore(deps): update docker.io/plugins/docker docker tag to v20.18.1
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-07-15 22:03:39 +00:00
03c7386e00 chore(deps): update quay.io/skopeo/stable docker tag to v1.15.1
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-06-01 16:01:33 +00:00
7f7cfcdcda chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.41.0
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-05-27 13:05:41 +00:00
53ad08aabd chore(deps): update docker.io/plugins/docker docker tag to v20.17.5
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-05-20 13:04:29 +00:00
b96bf9da2e chore(deps): update docker.io/plugins/docker docker tag to v20.17.4
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-05-13 10:02:19 +00:00
7525f7b431 chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.40.0
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-05-07 22:05:45 +00:00
868f202c91 chore(deps): update quay.io/skopeo/stable docker tag to v1.15.0
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-04-20 01:02:59 +00:00
83df321204 chore(deps): update docker.io/plugins/docker docker tag to v20.17.3
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2024-04-19 22:03:01 +00:00
cbdd6227eb fix(ci): markdownlint
All checks were successful
continuous-integration/drone Build is passing
2024-04-19 22:03:59 +02:00
a25147746c Merge pull request 'chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.39.0' (#19) from renovate/git.cryptic.systems-volker.raschek-markdownlint-0.x into master
Reviewed-on: #19
2024-02-15 17:59:30 +00:00
74d87bc20a chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.39.0 2024-01-28 23:02:37 +00:00
991b2d51d9 fix(renovate): remove automerge options 2024-01-21 14:34:38 +01:00
bff3f0864c Merge pull request 'chore(deps): update quay.io/skopeo/stable docker tag to v1.14.0' (#17) from renovate/quay.io-skopeo-stable-1.x into master
Reviewed-on: #17
2023-12-20 11:17:35 +00:00
033751b0b5 Merge pull request 'chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.38.0' (#18) from renovate/git.cryptic.systems-volker.raschek-markdownlint-0.x into master
Reviewed-on: #18
2023-12-20 11:17:00 +00:00
85d86a2f75 chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.38.0 2023-12-09 14:31:00 +00:00
3d4a9eda14 chore(deps): update quay.io/skopeo/stable docker tag to v1.14.0 2023-12-06 17:16:31 +01:00
1744831564 fix(renovate): include dep updates of docker.io/plugins/docker 2023-10-30 21:29:19 +01:00
765a7ecd59 Merge pull request 'chore(deps): update git.cryptic.systems/volker.raschek/git docker tag to v1.3.1' (#15) from renovate/git.cryptic.systems-volker.raschek-git-1.x into master
Reviewed-on: #15
2023-10-02 07:51:45 +00:00
9532212c29 Merge pull request 'chore(deps): update git.cryptic.systems/volker.raschek/drone-email docker tag to v0.1.5' (#16) from renovate/git.cryptic.systems-volker.raschek-drone-email-0.x into master
Reviewed-on: #16
2023-10-02 07:51:21 +00:00
6e49477f18 chore(deps): update git.cryptic.systems/volker.raschek/drone-email docker tag to v0.1.5 2023-10-02 00:16:56 +02:00
fae5d001ae chore(deps): update git.cryptic.systems/volker.raschek/git docker tag to v1.3.1 2023-10-01 23:02:30 +02:00
673e64b5c6 Merge pull request 'chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.37.0' (#14) from renovate/git.cryptic.systems-volker.raschek-markdownlint-0.x into master
Reviewed-on: #14
2023-09-29 07:02:08 +00:00
567042d30d Merge pull request 'chore(deps): update quay.io/skopeo/stable docker tag to v1.13.3' (#13) from renovate/quay.io-skopeo-stable-1.x into master
Reviewed-on: #13
2023-09-29 07:01:33 +00:00
450b5ceeb3 chore(deps): update git.cryptic.systems/volker.raschek/markdownlint docker tag to v0.37.0 2023-09-22 19:32:18 +02:00
0b538ca704 chore(deps): update quay.io/skopeo/stable docker tag to v1.13.3 2023-09-21 18:20:03 +02:00
1a1b5742be fix(renovate): exclude updating docker.io/plugins/docker 2023-09-03 16:10:36 +02:00
e5f7741027 fix: cleanup pkg cache
Some checks failed
continuous-integration/drone/push Build is failing
2023-07-23 11:17:14 +02:00
8b34224735 fix: migrate to git.cryptic.systems
Some checks failed
continuous-integration/drone/push Build is failing
2023-06-18 15:29:45 +02:00
2d3a7ee939 feat(ci): use git.cryptic.systems/volker.raschek/drone-email v0.1.2
Some checks failed
continuous-integration/drone/push Build is failing
2023-06-17 15:51:23 +02:00
4638c6d3db feat(ci): use git.cryptic.systems/volker.raschek/markdownlint v0.33.0
Some checks failed
continuous-integration/drone/push Build is failing
2023-06-08 19:37:14 +02:00
72c6f89704 feat(ci): use docker.io/plugins/drone v20.10.9
Some checks failed
continuous-integration/drone/push Build is failing
2023-06-08 19:24:34 +02:00
ceef088bc7 fix: remove arch linux pkgs from cache
Some checks failed
continuous-integration/drone/push Build is failing
2023-06-08 18:32:50 +02:00
a592b8220d feat(ci): migrate to volker.raschek/git v1.2.1
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-08 18:16:33 +02:00
10 changed files with 143 additions and 372 deletions

View File

@ -1,307 +0,0 @@
---
kind: pipeline
type: kubernetes
name: linter
platform:
os: linux
arch: amd64
steps:
- name: markdown lint
commands:
- markdownlint *.md
image: docker.io/volkerraschek/markdownlint:0.33.0
resources:
limits:
cpu: 150
memory: 150M
- name: email-notification
environment:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
SMTP_USERNAME:
from_secret: smtp_username
SMTP_PASSWORD:
from_secret: smtp_password
image: docker.io/volkerraschek/drone-email:0.1.1
resources:
limits:
cpu: 150
memory: 150M
when:
status:
- changed
- failure
trigger:
event:
exclude:
- tag
---
kind: pipeline
type: docker
name: dry-run-amd64
depends_on:
- linter
platform:
os: linux
arch: amd64
steps:
- name: build
image: docker.io/plugins/docker:latest
settings:
dockerfile: Dockerfile
auto_tag: false
dry_run: true
tags: latest-amd64
repo: volkerraschek/build-image
username:
from_secret: container_image_registry_user
password:
from_secret: container_image_registry_password
no_cache: true
- name: email-notification
environment:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
SMTP_USERNAME:
from_secret: smtp_username
SMTP_PASSWORD:
from_secret: smtp_password
image: docker.io/volkerraschek/drone-email:0.1.1
when:
status:
- changed
- failure
trigger:
branch:
exclude:
- master
event:
- pull_request
- push
repo:
- volker.raschek/build-image
---
kind: pipeline
type: docker
name: latest-amd64
platform:
os: linux
arch: amd64
steps:
- name: build
image: docker.io/plugins/docker:latest
settings:
dockerfile: Dockerfile
auto_tag: false
tags: latest-amd64
repo: volkerraschek/build-image
username:
from_secret: container_image_registry_user
password:
from_secret: container_image_registry_password
no_cache: true
- name: email-notification
environment:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
SMTP_USERNAME:
from_secret: smtp_username
SMTP_PASSWORD:
from_secret: smtp_password
image: docker.io/volkerraschek/drone-email:0.1.1
when:
status:
- changed
- failure
depends_on:
- linter
trigger:
branch:
- master
event:
- cron
- push
repo:
- volker.raschek/build-image
---
kind: pipeline
type: kubernetes
name: latest-manifest
depends_on:
- latest-amd64
steps:
- name: build-manifest
image: docker.io/plugins/manifest:latest
resources:
limits:
cpu: 150
memory: 150M
settings:
auto_tag: false
ignore_missing: true
spec: manifest.tmpl
username:
from_secret: container_image_registry_user
password:
from_secret: container_image_registry_password
- name: email-notification
environment:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
SMTP_USERNAME:
from_secret: smtp_username
SMTP_PASSWORD:
from_secret: smtp_password
image: docker.io/volkerraschek/drone-email:0.1.1
resources:
limits:
cpu: 150
memory: 150M
when:
status:
- changed
- failure
trigger:
branch:
- master
event:
- cron
- push
repo:
- volker.raschek/build-image
---
kind: pipeline
type: docker
name: tagged-amd64
platform:
os: linux
arch: amd64
steps:
- name: build
image: docker.io/plugins/docker:latest
settings:
dockerfile: Dockerfile
auto_tag: true
auto_tag_suffix: amd64
repo: volkerraschek/build-image
username:
from_secret: container_image_registry_user
password:
from_secret: container_image_registry_password
no_cache: true
- name: email-notification
environment:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
SMTP_USERNAME:
from_secret: smtp_username
SMTP_PASSWORD:
from_secret: smtp_password
image: docker.io/volkerraschek/drone-email:0.1.1
when:
status:
- changed
- failure
trigger:
event:
- tag
repo:
- volker.raschek/build-image
---
kind: pipeline
type: kubernetes
name: tagged-manifest
steps:
- name: build-manifest
image: docker.io/plugins/manifest:latest
resources:
limits:
cpu: 150
memory: 150M
settings:
auto_tag: true
ignore_missing: true
spec: manifest.tmpl
username:
from_secret: container_image_registry_user
password:
from_secret: container_image_registry_password
- name: email-notification
environment:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
SMTP_USERNAME:
from_secret: smtp_username
SMTP_PASSWORD:
from_secret: smtp_password
image: docker.io/volkerraschek/drone-email:0.1.1
resources:
limits:
cpu: 150
memory: 150M
when:
status:
- changed
- failure
depends_on:
- tagged-amd64
trigger:
event:
- tag
repo:
- volker.raschek/build-image

View File

@ -0,0 +1,22 @@
name: 'Lint Markdown files'
on:
pull_request:
types:
- opened
- reopened
- synchronize
push:
branches:
- master
workflow_dispatch: {}
jobs:
markdown-lint:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: DavidAnson/markdownlint-cli2-action@v20.0.0
with:
globs: '**/*.md'

View File

@ -0,0 +1,52 @@
name: Release
on:
push:
branches:
- master
jobs:
push-amd64:
runs-on: ubuntu-latest-amd64
steps:
- uses: actions/checkout@v4.2.2
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1
- uses: docker/login-action@v3.4.0
with:
registry: git.cryptic.systems
username: ${{ github.repository_owner }}
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
- name: Build and push image
run: |
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
docker buildx build \
--file Dockerfile \
--platform linux/amd64 \
--provenance false \
--push \
--tag git.cryptic.systems/volker.raschek/build-image:${TAG} \
.
sync-to-hub-docker-io:
needs:
- push-manifest
runs-on: ubuntu-latest
steps:
- name: Copy images to docker.io
run: |
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
apt-get update --yes
apt-get install --yes skopeo
skopeo copy \
--all \
--dest-password ${{ secrets.DOCKER_IO_PASSWORD }} \
--dest-username ${{ secrets.DOCKER_IO_USERNAME }} \
--src-password ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} \
--src-username volker.raschek \
docker://git.cryptic.systems/volker.raschek/build-image:${TAG} \
docker://docker.io/volkerraschek/build-image:${TAG}

View File

@ -0,0 +1,22 @@
name: Update Docker Hub Description
on:
push:
branches:
- master
paths:
- README.md
workflow_dispatch: {}
jobs:
update-description-on-hub-docker-io:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: peter-evans/dockerhub-description@v4.0.2
with:
username: ${{ secrets.DOCKER_IO_USERNAME }}
password: ${{ secrets.DOCKER_IO_PASSWORD }}
repository: volkerraschek/build-image
readme-filepath: README.md

View File

@ -45,19 +45,17 @@ MD012:
# MD013/line-length - Line length
MD013:
# Number of characters
line_length: 80
line_length: 120
# Number of characters for headings
heading_line_length: 80
heading_line_length: 120
# Number of characters for code blocks
code_block_line_length: 80
code_block_line_length: 120
# Include code blocks
code_blocks: false
# Include tables
tables: false
# Include headings
headings: true
# Include headings
headers: true
# Strict length checking
strict: false
# Stern length checking
@ -70,10 +68,8 @@ MD022:
# Blank lines below heading
lines_below: 1
# MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content
MD024:
# Only check sibling headings
allow_different_nesting: true
siblings_only: true
# MD025/single-title/single-h1 - Multiple top-level headings in the same document
MD025:
@ -129,7 +125,6 @@ MD041:
MD044:
# List of proper names
names: []
# - some-thing
# Include code blocks
code_blocks: false
@ -141,4 +136,4 @@ MD046:
# MD048/code-fence-style - Code fence style
MD048:
# Code fence syle
style: "backtick"
style: "backtick"

View File

@ -43,7 +43,8 @@ RUN sudo pacman --sync --refresh --noconfirm --sysupgrade \
oracle-instantclient-sdk \
oracle-instantclient-sqlplus \
oracle-instantclient-tools \
rpm-builder
rpm-builder && \
sudo rm --recursive --force /var/cache/pacman/pkg
RUN sudo mkdir /workspace && sudo chown ${BUILD_USER}:${BUILD_USER} /workspace
WORKDIR /workspace

View File

@ -5,13 +5,18 @@ CONTAINER_RUNTIME?=$(shell which podman)
# CONTAINER_IMAGE
# Defines the name of the new container to be built using several variables.
BUILD_IMAGE_REGISTRY_HOST:=docker.io
BUILD_IMAGE_REGISTRY_USER:=volkerraschek
BUILD_IMAGE_REGISTRY_HOST?=git.cryptic.systems
BUILD_IMAGE_REGISTRY_USER?=volker.raschek
BUILD_IMAGE_NAMESPACE?=${BUILD_IMAGE_REGISTRY_USER}
BUILD_IMAGE_REPOSITORY:=build-image
BUILD_IMAGE_VERSION?=latest
BUILD_IMAGE_FULLY_QUALIFIED=${BUILD_IMAGE_REGISTRY_HOST}/${BUILD_IMAGE_NAMESPACE}/${BUILD_IMAGE_REPOSITORY}:${BUILD_IMAGE_VERSION}
BUILD_IMAGE_UNQUALIFIED=${BUILD_IMAGE_NAMESPACE}/${BUILD_IMAGE_REPOSITORY}:${BUILD_IMAGE_VERSION}
# MARKDOWNLINT_IMAGE
MARKDOWNLINT_IMAGE_REGISTRY_HOST?=git.cryptic.systems
MARKDOWNLINT_IMAGE_REPOSITORY?=volker.raschek/markdownlint
MARKDOWNLINT_IMAGE_VERSION?=0.43.0 # renovate: datasource=docker registryUrl=https://git.cryptic.systems depName=volker.raschek/markdownlint
MARKDOWNLINT_IMAGE_FULLY_QUALIFIED=${MARKDOWNLINT_IMAGE_REGISTRY_HOST}/${MARKDOWNLINT_IMAGE_REPOSITORY}:${MARKDOWNLINT_IMAGE_VERSION}
# BUILD CONTAINER IMAGE
# ==============================================================================
@ -22,15 +27,13 @@ container-image/build:
--no-cache \
--pull \
--tag ${BUILD_IMAGE_FULLY_QUALIFIED} \
--tag ${BUILD_IMAGE_UNQUALIFIED} \
.
# DELETE CONTAINER IMAGE
# ==============================================================================
PHONY:=container-image/delete
container-image/delete:
- ${CONTAINER_RUNTIME} image rm ${BUILD_IMAGE_FULLY_QUALIFIED} ${BUILD_IMAGE_UNQUALIFIED}
- ${CONTAINER_RUNTIME} image rm ${BASE_IMAGE_FULLY_QUALIFIED}
- ${CONTAINER_RUNTIME} image rm ${BUILD_IMAGE_FULLY_QUALIFIED}
# PUSH CONTAINER IMAGE
# ==============================================================================
@ -39,6 +42,16 @@ container-image/push:
echo ${BUILD_IMAGE_REGISTRY_PASSWORD} | ${CONTAINER_RUNTIME} login ${BUILD_IMAGE_REGISTRY_HOST} --username ${BUILD_IMAGE_REGISTRY_USER} --password-stdin
${CONTAINER_RUNTIME} push ${BUILD_IMAGE_FULLY_QUALIFIED}
# CONTAINER RUN - MARKDOWN-LINT
# ==============================================================================
PHONY+=container-run/markdown-lint
container-run/markdown-lint:
${CONTAINER_RUNTIME} run \
--rm \
--volume $(shell pwd):/work \
${MARKDOWNLINT_IMAGE_FULLY_QUALIFIED} \
*.md
# PHONY
# ==============================================================================
# Declare the contents of the PHONY variable as phony. We keep that information

View File

@ -1,11 +1,9 @@
# build-image
[![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
This project contains all sources to build the container image `git.cryptic.systems/volker.raschek/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 +12,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 +22,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 +33,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,41 +44,38 @@ 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 \
--rm \
--volume ${PWD}:/workspace \
volkerraschek/build-image:latest \
git.cryptic.systems/volker.raschek/build-image:latest \
go build
```
### 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 \
--env MAKEPKG_PACKAGER="Max Mustermann <max.mustermann@example.com" \
--rm \
--volume ${PWD}:/workspace \
volkerraschek/build-image:latest \
git.cryptic.systems/volker.raschek/build-image:latest \
makepkg
```
### 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 \
--rm \
--volume ${PWD}:/workspace \
volkerraschek/build-image:latest \
git.cryptic.systems/volker.raschek/build-image:latest \
cargo build --release
```

View File

@ -1,14 +0,0 @@
image: volkerraschek/build-image:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}}
tags:
{{#each build.tags}}
- {{this}}
{{/each}}
- "latest"
{{/if}}
manifests:
-
image: volkerraschek/build-image:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}-amd64
platform:
architecture: amd64
os: linux

View File

@ -1,17 +1,9 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"assignees": [ "volker.raschek" ],
"automergeStrategy": "merge-commit",
"automergeType": "pr",
"labels": [ "renovate" ],
"packageRules": [
{
"addLabels": [ "renovate/droneci", "renovate/automerge" ],
"automerge": true,
"matchManagers": "droneci",
"matchUpdateTypes": [ "minor", "patch"]
}
],
"rebaseLabel": "renovate/rebase",
"rebaseWhen": "behind-base-branch"
"extends": [
"local>volker.raschek/renovate-config:default#master",
"local>volker.raschek/renovate-config:container#master",
"local>volker.raschek/renovate-config:actions#master",
"local>volker.raschek/renovate-config:regexp#master"
]
}