Skip to content

Commit

Permalink
test: update cron.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Dec 26, 2024
1 parent 82e9284 commit 20ffea7
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ jobs:
- name: Pull trivy-java-db
run: |
mkdir -p ./cache/db
lowercase_repo=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
./oras pull "ghcr.io/${lowercase_repo}:${DB_VERSION}"
./oras pull ghcr.io/aquasecurity/trivy-java-db@sha256:ece2f05be72dbddb0f648ef9a8d60538892f71e8a50019d705d11a20f194d282
tar -xvf javadb.tar.gz -C ./cache/db
- name: Build the binary
Expand All @@ -51,26 +50,13 @@ jobs:
- name: Move DB
run: mv cache/db/javadb.tar.gz .

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Packages Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ env.GH_USER }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to ECR
uses: docker/login-action@v3
with:
registry: public.ecr.aws
username: ${{ secrets.ECR_ACCESS_KEY_ID }}
password: ${{ secrets.ECR_SECRET_ACCESS_KEY }}

- name: Upload assets to registries
run: |
lowercase_repo=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
Expand All @@ -81,8 +67,6 @@ jobs:
# Define an array of registry base URLs and their corresponding repository names
declare -A registries=(
["ghcr.io"]="${lowercase_repo}"
["public.ecr.aws"]="${lowercase_repo}"
["docker.io"]="${lowercase_repo}"
)
# Special case for docker.io if the organization is 'aquasecurity'
Expand Down

0 comments on commit 20ffea7

Please sign in to comment.