images/.forgejo/workflows/argco_cd.yaml
Peter c601f4168a
Some checks failed
act_runtime / build_images (node:20-bookworm-slim, ubuntu-latest) (push) Successful in 37s
act_runtime / build_images (node:20-bullseye-slim, ubuntu-latest) (push) Successful in 15s
act_runtime / build_images (node:20-bookworm-slim, ubuntu-latest-amd64) (push) Failing after 3m36s
Image builds / build-ente-images (photos) (push) Successful in 18s
Image builds / build-ente-images (cast) (push) Successful in 1m17s
Renovate / renovate (push) Successful in 33s
Image builds / build_images (renovate) (push) Successful in 3m9s
act_runtime / build_images (node:20-bullseye-slim, ubuntu-latest-amd64) (push) Successful in 6m31s
chore(deps): update docker/build-push-action action to v6
2024-08-15 08:55:26 +00:00

42 lines
No EOL
1.2 KiB
YAML

---
name: Image builds
on:
schedule:
- cron: "21 2 * * *"
push:
branches:
- main
paths:
- ".forgejo/workflows/argo_cd.yaml"
- "argocd/**"
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: Check latest ArgoCD tag
run: |
echo "ARGOCD_VERSION=$(gh release list -R argoproj/argo-cd --exclude-pre-releases --exclude-drafts --json 'tagName' --jq '.[].tagName' --limit 10 | sort -t. -k 1,1nr -k 2,2nr -k 3,3nr -k 4,4nr | head -n 1)" >> "$GITHUB_ENV"
env:
GH_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: "./argocd"
push: true
tags: code.icb4dc0.de/infrastructure/images/argocd:${{ env.ARGOCD_VERSION }}
build-args: |
BASE_IMAGE=quay.io/argoproj/argocd:${{ env.ARGOCD_VERSION }}