-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into environment-variable-documentation
- Loading branch information
Showing
790 changed files
with
66,154 additions
and
24,291 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,11 @@ on: | |
types: [ labeled, unlabeled, opened, synchronize, reopened ] | ||
|
||
env: | ||
GOLANG_VERSION: '1.17.6' | ||
GOLANG_VERSION: '1.18' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
publish: | ||
|
@@ -45,18 +49,38 @@ jobs: | |
# build | ||
- uses: docker/setup-qemu-action@v1 | ||
- uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Run non-container Snyk scans | ||
if: github.event_name == 'push' | ||
working-directory: ./src/github.com/argoproj/argo-cd | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
run: | | ||
npm install -g snyk | ||
# Run with high threshold to fail build. | ||
snyk test --org=argoproj --all-projects --exclude=docs,site --severity-threshold=high --policy-path=.snyk | ||
snyk iac test manifests/install.yaml --org=argoproj --severity-threshold=high --policy-path=.snyk | ||
- run: | | ||
IMAGE_PLATFORMS=linux/amd64 | ||
if [[ "${{ github.event_name }}" == "push" || "${{ contains(github.event.pull_request.labels.*.name, 'test-arm-image') }}" == "true" ]] | ||
then | ||
IMAGE_PLATFORMS=linux/amd64,linux/arm64 | ||
IMAGE_PLATFORMS=linux/amd64,linux/arm64,linux/s390x,linux/ppc64le | ||
fi | ||
echo "Building image for platforms: $IMAGE_PLATFORMS" | ||
docker buildx build --platform $IMAGE_PLATFORMS --push="${{ github.event_name == 'push' }}" \ | ||
-t ghcr.io/argoproj/argocd:${{ steps.image.outputs.tag }} \ | ||
-t quay.io/argoproj/argocd:latest . | ||
working-directory: ./src/github.com/argoproj/argo-cd | ||
- name: Run container Snyk scan | ||
if: github.event_name == 'push' | ||
working-directory: ./src/github.com/argoproj/argo-cd | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
run: | | ||
snyk container test quay.io/argoproj/argocd:latest --org=argoproj --file=Dockerfile --severity-threshold=high | ||
# deploy | ||
- run: git clone "https://[email protected]/argoproj/argoproj-deployments" | ||
|
This file contains 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
This file contains 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
Oops, something went wrong.