Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add argocd-image-updater package #37040

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions argocd-image-updater.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
package:
name: argocd-image-updater
version: 0.15.1
epoch: 0
description: Automatic container image update for Argo CD
copyright:
- license: Apache-2.0
dependencies:
runtime:
- aws-cli-2
- ca-certificates
- git
- gpg
- openssh-client
- tini

pipeline:
- uses: git-checkout
with:
repository: https://github.com/argoproj-labs/argocd-image-updater
tag: v${{package.version}}
expected-commit: 3a2c074a8fc2730c95f16c3a806ec031a72387d9

- uses: go/bump
with:
deps: github.com/golang-jwt/jwt/[email protected] golang.org/x/[email protected]

- uses: go/build
with:
packages: ./cmd/
output: argocd-image-updater
ldflags: |
-X github.com/argoproj-labs/argocd-image-updater/pkg/version.version=${{package.version}}
-X github.com/argoproj-labs/argocd-image-updater/pkg/version.gitCommit=$(git rev-parse HEAD)
-X github.com/argoproj-labs/argocd-image-updater/pkg/version.buildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ')

subpackages:
- name: ${{package.name}}-compat
description: argocd-image-updater compat to put binary at expected place by stream
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/local/bin
ln -sf /usr/bin/argocd-image-updater ${{targets.subpkgdir}}/usr/local/bin/argocd-image-updater

update:
enabled: true
github:
identifier: argoproj-labs/argocd-image-updater
strip-prefix: v
tag-filter: v

test:
pipeline:
- name: Check version
runs: |
argocd-image-updater version | grep -q ${{package.version}}
- uses: test/kwok/cluster
- name: more tests
runs: |
argocd-image-updater test nginx
Loading