Skip to content

Commit

Permalink
Merge branch 'master' into update-plugin-links-v0.178.10
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirkiviti13 authored Aug 18, 2024
2 parents 5789dc7 + 7e98c65 commit 94d1c93
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 75 deletions.
5 changes: 3 additions & 2 deletions .github/plugin_template.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: "aqua"
repository: github.com/aquasecurity/trivy-plugin-aqua
version: "PLACEHOLDERVERSION"
usage: trivy aqua <srcPath>
description: A Trivy plugin that sends results to Aqua.
maintainer: aquasecurity
summary: Send results to Aqua Security
description: A plugin for integration with Aqua Security SaaS platform
platforms:
- selector: # optional
os: linux
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/pr-merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ jobs:
docker tag aquasec/aqua-scanner:${{ env.new_version }}-arm64 aquasec/aqua-scanner:latest-arm64
docker push aquasec/aqua-scanner:latest-arm64
#docker pull aquasec/aqua-scanner:${{ env.new_version }}-amd64-limited
#docker tag aquasec/aqua-scanner:${{ env.new_version }}-amd64-limited aquasec/aqua-scanner:latest-amd64-limited
#docker push aquasec/aqua-scanner:latest-amd64-limited
docker pull aquasec/aqua-scanner:${{ env.new_version }}-amd64-limited
docker tag aquasec/aqua-scanner:${{ env.new_version }}-amd64-limited aquasec/aqua-scanner:latest-amd64-limited
docker push aquasec/aqua-scanner:latest-amd64-limited
#docker pull aquasec/aqua-scanner:${{ env.new_version }}-arm64-limited
#docker tag aquasec/aqua-scanner:${{ env.new_version }}-arm64-limited aquasec/aqua-scanner:latest-arm64-limited
#docker push aquasec/aqua-scanner:latest-arm64-limited
docker pull aquasec/aqua-scanner:${{ env.new_version }}-arm64-limited
docker tag aquasec/aqua-scanner:${{ env.new_version }}-arm64-limited aquasec/aqua-scanner:latest-arm64-limited
docker push aquasec/aqua-scanner:latest-arm64-limited
docker manifest create aquasec/aqua-scanner:latest aquasec/aqua-scanner:latest-amd64 aquasec/aqua-scanner:latest-arm64
docker manifest push aquasec/aqua-scanner:latest
#docker manifest create aquasec/aqua-scanner:latest-limited aquasec/aqua-scanner:latest-amd64-limited aquasec/aqua-scanner:latest-arm64-limited
#docker manifest push aquasec/aqua-scanner:latest-limited
docker manifest create aquasec/aqua-scanner:latest-limited aquasec/aqua-scanner:latest-amd64-limited aquasec/aqua-scanner:latest-arm64-limited
docker manifest push aquasec/aqua-scanner:latest-limited
- name: DockerHub description update
uses: peter-evans/dockerhub-description@v3
with:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/retag-latest-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Re-tag latest version
on:
workflow_dispatch:
inputs:
version:
description: "Version to re-tag"
required: true

jobs:
Update-images:
runs-on: ubuntu-latest
steps:
- name: Login to docker.io registry
uses: docker/login-action@v2
with:
username: ${{ secrets.ARGON_DOCKERHUB_USER }}
password: ${{ secrets.ARGON_DOCKERHUB_TOKEN }}
- name: Change image versions to latest
run: |
docker pull aquasec/aqua-scanner:${{ inputs.version }}-amd64
docker tag aquasec/aqua-scanner:${{ inputs.version }}-amd64 aquasec/aqua-scanner:latest-amd64
docker push aquasec/aqua-scanner:latest-amd64
docker pull aquasec/aqua-scanner:${{ inputs.version }}-arm64
docker tag aquasec/aqua-scanner:${{ inputs.version }}-arm64 aquasec/aqua-scanner:latest-arm64
docker push aquasec/aqua-scanner:latest-arm64
docker pull aquasec/aqua-scanner:${{ inputs.version }}-amd64-limited
docker tag aquasec/aqua-scanner:${{ inputs.version }}-amd64-limited aquasec/aqua-scanner:latest-amd64-limited
docker push aquasec/aqua-scanner:latest-amd64-limited
docker pull aquasec/aqua-scanner:${{ inputs.version }}-arm64-limited
docker tag aquasec/aqua-scanner:${{ inputs.version }}-arm64-limited aquasec/aqua-scanner:latest-arm64-limited
docker push aquasec/aqua-scanner:latest-arm64-limited
docker manifest create aquasec/aqua-scanner:latest aquasec/aqua-scanner:latest-amd64 aquasec/aqua-scanner:latest-arm64
docker manifest push aquasec/aqua-scanner:latest
docker manifest create aquasec/aqua-scanner:latest-limited aquasec/aqua-scanner:latest-amd64-limited aquasec/aqua-scanner:latest-arm64-limited
docker manifest push aquasec/aqua-scanner:latest-limited
Loading

0 comments on commit 94d1c93

Please sign in to comment.