Skip to content

Update dependency aquaproj/aqua-registry to v4.232.0 #4222

Update dependency aquaproj/aqua-registry to v4.232.0

Update dependency aquaproj/aqua-registry to v4.232.0 #4222

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- 'main'
env:
go-version: 1.22
jobs:
sync:
name: Sync all applications
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.go-version }}
- run: go install github.com/yusukebe/t/cmd/t@latest
- uses: aquaproj/[email protected]
with:
aqua_version: v2.36.1
policy_allow: "true"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: make launch-k8s
- run: make deploy-argocd
- name: patch targetRevision
run: |
if [[ ${{ github.event_name }} == 'pull_request' ]]; then
BRANCH_NAME=${GITHUB_HEAD_REF}
else
BRANCH_NAME=${GITHUB_REF#refs/heads/}
fi
echo change targetRevision to ${BRANCH_NAME}
for app in namespaces monitoring sandbox; do
kubectl patch -n argocd applications $app --type=json -p="[{'op':'replace','path':'/spec/source/targetRevision','value':${BRANCH_NAME}}]"
done
- run: make sync-applications
- name: check status
run: |
IFS=$'\n'; for item in $(kubectl get app -n argocd -o json | jq -c '.items[]'); do
echo $item | jq -r .metadata.name
echo $item | jq -r .status.health.status | t Healthy
echo $item | jq -r .status.sync.status | t Synced
done