feat(argocd): build image with git-age
All checks were successful
act_runtime / build_images (node:20-bullseye-slim, ubuntu-latest) (push) Successful in 14s
act_runtime / build_images (node:20-bookworm-slim, ubuntu-latest-amd64) (push) Successful in 23s
act_runtime / build_images (node:20-bullseye-slim, ubuntu-latest-amd64) (push) Successful in 21s
Image builds / build-argo-cd-image (push) Successful in 49s
act_runtime / build_images (node:20-bookworm-slim, ubuntu-latest) (push) Successful in 1m56s
Image builds / build_images (renovate) (push) Successful in 55s
KeyDB / build-key-db-image (push) Successful in 19s

This commit is contained in:
Peter 2024-04-26 08:41:21 +02:00
parent 0507623e63
commit ab67bc0682
Signed by: prskr
GPG key ID: F56BED6903BC5E37
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,31 @@
---
name: Image builds
on:
push:
branches:
- main
jobs:
build-argo-cd-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: code.icb4dc0.de
username: prskr
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: "./argocd"
push: true
tags: code.icb4dc0.de/infrastructure/images/argocd:v2.10.7
build-args: |
BASE_IMAGE=quay.io/argoproj/argocd:v2.10.7

15
argocd/Dockerfile Normal file
View file

@ -0,0 +1,15 @@
ARG BASE_IMAGE=quay.io/argoproj/argocd:v2.10.7
FROM ${BASE_IMAGE}
USER root
ADD https://code.icb4dc0.de/api/packages/prskr/debian/repository.key /etc/apt/trusted.gpg.d/forgejo-prskr.asc
RUN chmod 644 /etc/apt/trusted.gpg.d/forgejo-prskr.asc && \
echo "deb https://code.icb4dc0.de/api/packages/prskr/debian bookworm main" > /etc/apt/sources.list.d/forgejo.list && \
apt-get update && \
apt-get install -y \
git-age
USER argocd