feat(container): update quay.io/argoproj/argocd docker tag (v3.4.3 → v3.5.1) #184
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "ArgoCD: Build Container Image / Pull Request" | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'argocd/**' | |
| - '.github/workflows/build-argocd-pr.yml' | |
| - '.github/workflows/build-container.yml' | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| get-version: | |
| runs-on: ubuntu-24.04 | |
| outputs: | |
| argocd: ${{ steps.argocd-version.outputs.ARGOCD_VERSION }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 | |
| - name: Extract ARGOCD_VERSION from Dockerfile | |
| id: argocd-version | |
| run: | | |
| ARGOCD_VERSION=$(grep -E '^FROM quay.io/argoproj/argocd:v[0-9]+\.[0-9]+\.[0-9]+' argocd/Dockerfile | sed -E 's|.*argocd:v([0-9]+\.[0-9]+\.[0-9]+).*|\1|') | |
| echo "ARGOCD_VERSION=$ARGOCD_VERSION" >> $GITHUB_OUTPUT | |
| call-build-workflow: | |
| name: Build & Push | |
| needs: get-version | |
| uses: erhardtconsulting/images/.github/workflows/build-container.yml@main | |
| with: | |
| image: "argocd" | |
| dockerfile: "Dockerfile" | |
| tag: ${{ needs.get-version.outputs.argocd }} | |
| push: false | |
| push-docker: false | |
| push-quay: false | |
| secrets: inherit |